This commit is contained in:
Jamie Cameron
2023-09-17 19:39:40 -07:00
parent aa6edf6c55
commit d8fa7f26af
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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] };