diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-09-16 12:13:27 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-09-17 06:59:18 +0200 |
commit | 38aae53a1004bb7393c81a98c7b370344613244e (patch) | |
tree | 59057a5a13954068301bae19a16f43531a5dd3c8 | |
parent | ae0d1f3af9ae129c3a7d98a544e0c9b0c30659c7 (diff) |
tdf#119897: "Version " prefix is optional
Hopefully this fixes the problem, which is being incorrect version written
for the font in MSI (1.0.0.0), and comparing with installed one (1.3), the
font is removed and not reinstalled.
Change-Id: Iee675e2c2b3f29c76e35dcf41bbcce9b6181bf62
Reviewed-on: https://gerrit.libreoffice.org/60548
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | solenv/bin/modules/installer/windows/file.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/windows/file.pm b/solenv/bin/modules/installer/windows/file.pm index 43b2ef3e858f..081edde6db99 100644 --- a/solenv/bin/modules/installer/windows/file.pm +++ b/solenv/bin/modules/installer/windows/file.pm @@ -562,9 +562,9 @@ sub get_fileversion my $ttfdata = $fnt->{'name'}->read->find_name(5); $fnt->release; - if ($ttfdata =~ /Version ([0-9]+(\.[0-9]+)*)/i) + if ($ttfdata =~ /(Version )?([0-9]+(\.[0-9]+)*)/i) { - my ($version, $subversion, $microversion, $vervariant) = split(/\./,$1); + my ($version, $subversion, $microversion, $vervariant) = split(/\./,$2); $fileversion = int($version) . "." . int($subversion) . "." . int($microversion) . "." . int($vervariant); } else |