summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--instsetoo_native/util/openoffice.lst.in1
-rw-r--r--solenv/bin/modules/installer/scriptitems.pm6
2 files changed, 4 insertions, 3 deletions
diff --git a/instsetoo_native/util/openoffice.lst.in b/instsetoo_native/util/openoffice.lst.in
index 6673b5d53ad7..06bd10a2004e 100644
--- a/instsetoo_native/util/openoffice.lst.in
+++ b/instsetoo_native/util/openoffice.lst.in
@@ -4,6 +4,7 @@ Globals
{
variables
{
+ LIBO_VERSION_MAJOR @LIBO_VERSION_MAJOR@
UREPACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
URELAYERVERSION 1
REFERENCEOOOMAJORMINOR 4.1
diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm
index 1b8922dfa21c..58ca3fe7c5af 100644
--- a/solenv/bin/modules/installer/scriptitems.pm
+++ b/solenv/bin/modules/installer/scriptitems.pm
@@ -632,8 +632,8 @@ sub replace_setup_variables
my $productname = $hashref->{'PRODUCTNAME'};
my $productversion = $hashref->{'PRODUCTVERSION'};
- my $userdirproductversion = "";
- if ( $hashref->{'USERDIRPRODUCTVERSION'} ) { $userdirproductversion = $hashref->{'USERDIRPRODUCTVERSION'}; }
+ my $libo_version_major = "";
+ if ( $hashref->{'LIBO_VERSION_MAJOR'} ) { $libo_version_major = $hashref->{'LIBO_VERSION_MAJOR'}; }
my $productkey = $productname . " " . $productversion;
# string $buildid, which is used to replace the setup variable <buildid>
@@ -653,7 +653,7 @@ sub replace_setup_variables
if ( $localminor =~ /^\s*\w(\d+)\w*\s*$/ ) { $localminor = $1; }
- my $updateid = $productname . "_" . $userdirproductversion . "_" . $$languagestringref;
+ my $updateid = $productname . "_" . $libo_version_major . "_" . $$languagestringref;
$updateid =~ s/ /_/g;
for ( my $i = 0; $i <= $#{$itemsarrayref}; $i++ )