Kaydet (Commit) 545ad832 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix version number in scp2-generated version ini-file UpdateID variable

USERDIRPRODUCTVERSION is stuck at 4 now (as its main use is for the version
number of the UserInstallation directory), so use LIBO_VERSION_MAJOR instead
(like generation of the version ini-file counterpart for instdir/ does in
instsetoo_native/CustomTarget_setup.mk).

Change-Id: Ib87536d335487383940cff2f69c864a33f05bbee
Reviewed-on: https://gerrit.libreoffice.org/35301Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
üst e503a69e
...@@ -4,6 +4,7 @@ Globals ...@@ -4,6 +4,7 @@ Globals
{ {
variables variables
{ {
LIBO_VERSION_MAJOR @LIBO_VERSION_MAJOR@
UREPACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@ UREPACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
URELAYERVERSION 1 URELAYERVERSION 1
REFERENCEOOOMAJORMINOR 4.1 REFERENCEOOOMAJORMINOR 4.1
......
...@@ -632,8 +632,8 @@ sub replace_setup_variables ...@@ -632,8 +632,8 @@ sub replace_setup_variables
my $productname = $hashref->{'PRODUCTNAME'}; my $productname = $hashref->{'PRODUCTNAME'};
my $productversion = $hashref->{'PRODUCTVERSION'}; my $productversion = $hashref->{'PRODUCTVERSION'};
my $userdirproductversion = ""; my $libo_version_major = "";
if ( $hashref->{'USERDIRPRODUCTVERSION'} ) { $userdirproductversion = $hashref->{'USERDIRPRODUCTVERSION'}; } if ( $hashref->{'LIBO_VERSION_MAJOR'} ) { $libo_version_major = $hashref->{'LIBO_VERSION_MAJOR'}; }
my $productkey = $productname . " " . $productversion; my $productkey = $productname . " " . $productversion;
# string $buildid, which is used to replace the setup variable <buildid> # string $buildid, which is used to replace the setup variable <buildid>
...@@ -653,7 +653,7 @@ sub replace_setup_variables ...@@ -653,7 +653,7 @@ sub replace_setup_variables
if ( $localminor =~ /^\s*\w(\d+)\w*\s*$/ ) { $localminor = $1; } if ( $localminor =~ /^\s*\w(\d+)\w*\s*$/ ) { $localminor = $1; }
my $updateid = $productname . "_" . $userdirproductversion . "_" . $$languagestringref; my $updateid = $productname . "_" . $libo_version_major . "_" . $$languagestringref;
$updateid =~ s/ /_/g; $updateid =~ s/ /_/g;
for ( my $i = 0; $i <= $#{$itemsarrayref}; $i++ ) for ( my $i = 0; $i <= $#{$itemsarrayref}; $i++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment