diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-01-13 00:26:17 -0800 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-08-23 17:41:39 +0200 |
commit | f74a6338b3897df49f3041e7ce33453eaba9e2e5 (patch) | |
tree | e2c8edc0a4803f523539a8b0bef31590d9c06586 | |
parent | 557cfd3bb1e9eb2792b0aa3831ad107d52ed9909 (diff) |
MSP patchsequence fix
Change-Id: Iaf4a6e5eb8291d78835a391894ba1b1cc675390a
-rw-r--r-- | solenv/bin/modules/installer/windows/msp.pm | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/solenv/bin/modules/installer/windows/msp.pm b/solenv/bin/modules/installer/windows/msp.pm index 01052fca99cc..1bbeea8d20cb 100644 --- a/solenv/bin/modules/installer/windows/msp.pm +++ b/solenv/bin/modules/installer/windows/msp.pm @@ -877,19 +877,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; } |