diff options
author | Andras Timar <atimar@suse.com> | 2011-12-10 22:10:35 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-12-10 22:25:31 +0100 |
commit | 6a43a6c1fe56e5b63e5f330f87feada6479f8119 (patch) | |
tree | f1b6fffcc18266d753471d0b004f4293fb6b3a71 /solenv | |
parent | 3fbedc3e8f65c91999dcee42daa8312e387dcf40 (diff) |
use PACKAGEVERSION as the base of MSI ProductVersion
Formerly PRODUCTVERSION was used but that did not contain
the microversion digit. It is better to have it in MSI
ProductVersion, because a higher build number of a lower
microversion looked newer from the MSI point of view, and
update failed.
MSI ProductVersion is now major.minor.micro.build, e.g.
3.6.1.1206 (build number is taken from minor.mk)
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/windows/msiglobal.pm | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/solenv/bin/modules/installer/windows/msiglobal.pm b/solenv/bin/modules/installer/windows/msiglobal.pm index a90698a5852d..43e6ee3f4cde 100644 --- a/solenv/bin/modules/installer/windows/msiglobal.pm +++ b/solenv/bin/modules/installer/windows/msiglobal.pm @@ -1805,27 +1805,11 @@ sub set_msiproductversion { my ( $allvariables ) = @_; - my $productversion = $allvariables->{'PRODUCTVERSION'}; - - if (( $productversion =~ /^\s*\d+\s*$/ ) && ( $productversion > 255 )) { $productversion = $productversion%256; } + my $productversion = $allvariables->{'PACKAGEVERSION'}; if ( $productversion =~ /^\s*(\d+)\.(\d+)\.(\d+)\s*$/ ) { - $productversion = $1 . "\." . $2 . $3 . "\." . $installer::globals::buildid; - } - elsif ( $productversion =~ /^\s*(\d+)\.(\d+)\s*$/ ) - { - $productversion = $1 . "\." . $2 . "\." . $installer::globals::buildid; - } - else - { - my $productminor = "00"; - if (( $allvariables->{'PACKAGEVERSION'} ) && ( $allvariables->{'PACKAGEVERSION'} ne "" )) - { - if ( $allvariables->{'PACKAGEVERSION'} =~ /^\s*(\d+)\.(\d+)\.(\d+)\s*$/ ) { $productminor = $2; } - } - - $productversion = $productversion . "\." . $productminor . "\." . $installer::globals::buildid; + $productversion = $1 . "\." . $2 . "\." . $3 . "\." . $installer::globals::buildid; } $installer::globals::msiproductversion = $productversion; |