mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Use proper function to compare versions https://github.com/virtualmin/virtualmin-gpl/issues/641
This commit is contained in:
@@ -35,7 +35,7 @@ foreach $url (@urls) {
|
||||
my $nver = $u->[1];
|
||||
$nver =~ s/^(\d+\.\d+)\..*$/$1/;
|
||||
next if (%info && $info{'version'} &&
|
||||
$info{'version'} >= $nver);
|
||||
&compare_version_numbers($info{'version'}, $nver) >= 0);
|
||||
|
||||
if ($in{'show'}) {
|
||||
# Just tell the user what would be done
|
||||
|
||||
@@ -2458,7 +2458,8 @@ foreach my $u (@$allupdates) {
|
||||
next if (!%info && !$missing);
|
||||
|
||||
# Skip if module has a version, and we already have it
|
||||
next if (%info && $info{'version'} && $info{'version'} >= $nver);
|
||||
next if (%info && $info{'version'} &&
|
||||
&compare_version_numbers($info{'version'}, $nver) >= 0);
|
||||
|
||||
# Skip if not supported on this OS
|
||||
my $osinfo = { 'os_support' => $u->[3] };
|
||||
|
||||
Reference in New Issue
Block a user