Kaydet (Commit) f74a6338 authored tarafından Andras Timar's avatar Andras Timar

MSP patchsequence fix

Change-Id: Iaf4a6e5eb8291d78835a391894ba1b1cc675390a
üst 557cfd3b
...@@ -877,19 +877,14 @@ sub get_patchsequence ...@@ -877,19 +877,14 @@ sub get_patchsequence
my $packageversion = $allvariables->{'PACKAGEVERSION'}; my $packageversion = $allvariables->{'PACKAGEVERSION'};
if ( $packageversion =~ /^\s*(\d+)\.(\d+)\.(\d+)\s*$/ ) if ( $packageversion =~ /^\s*(\d+)\.(\d+)\.(\d+)\.(\d+)\s*$/ )
{ {
my $major = $1; my $major = $1;
my $minor = $2; my $minor = $2;
my $micro = $3; my $micro = $3;
my $concat = 100 * $minor + $micro; my $patch = $4;
$packageversion = $major . "\." . $concat; $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; return $patchsequence;
} }
......
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