mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
small optimazation: don't compare versions that are equal
This commit is contained in:
parent
f5fc337074
commit
f21b7ffdfa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109409
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ while (<VERSIONS>) {
|
||||||
$newversion =~ s/^.*-//;
|
$newversion =~ s/^.*-//;
|
||||||
$oldversion =~ s/^.*-//;
|
$oldversion =~ s/^.*-//;
|
||||||
|
|
||||||
my $result = readfrom '',
|
my $result = $newversion eq $oldversion ? '=' : readfrom '',
|
||||||
$pkg_version, '-t', $newversion, $oldversion;
|
$pkg_version, '-t', $newversion, $oldversion;
|
||||||
if ($result eq '<') {
|
if ($result eq '<') {
|
||||||
$backwards{$origin} = "$pkgname{$origin} < $version";
|
$backwards{$origin} = "$pkgname{$origin} < $version";
|
||||||
|
|
Loading…
Add table
Reference in a new issue