[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.1' - solenv/bin

Andras Timar andras.timar at collabora.com
Mon Jan 13 00:26:37 PST 2014


 solenv/bin/modules/installer/windows/msp.pm |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 550f9ad0386660cb6d058e0e5b662b92f87378ba
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon Jan 13 00:26:17 2014 -0800

    MSP patchsequence fix
    
    Change-Id: Iaf4a6e5eb8291d78835a391894ba1b1cc675390a

diff --git a/solenv/bin/modules/installer/windows/msp.pm b/solenv/bin/modules/installer/windows/msp.pm
index bdb3367..111db2b 100644
--- a/solenv/bin/modules/installer/windows/msp.pm
+++ b/solenv/bin/modules/installer/windows/msp.pm
@@ -891,19 +891,14 @@ sub get_patchsequence
 
     my $packageversion = $allvariables->{'PACKAGEVERSION'};
 
-    if ( $packageversion =~ /^\s*(\d+)\.(\d+)\.(\d+)\s*$/ )
+    if ( $packageversion =~ /^\s*(\d+)\.(\d+)\.(\d+)\.(\d+)\s*$/ )
     {
         my $major = $1;
         my $minor = $2;
         my $micro = $3;
-        my $concat = 100 * $minor + $micro;
-        $packageversion = $major . "\." . $concat;
+        my $patch = $4;
+        $patchsequence = $major . "\." . $minor . "\." . $micro . "\." . $patch;
     }
-    my $vendornumber = 0;
-    if ( $allvariables->{'VENDORPATCHVERSION'} ) { $vendornumber = $allvariables->{'VENDORPATCHVERSION'}; }
-    $patchsequence = $packageversion . "\." . $installer::globals::buildid . "\." . $vendornumber;
-
-    if ( $allvariables->{'PATCHSEQUENCE'} ) { $patchsequence = $allvariables->{'PATCHSEQUENCE'}; }
 
     return $patchsequence;
 }


More information about the Libreoffice-commits mailing list