diff options
author | eik <eik@FreeBSD.org> | 2004-05-18 08:53:39 +0000 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-05-18 08:53:39 +0000 |
commit | aa529a96feb2e2030d43973283365648dacf2576 (patch) | |
tree | 37db4314c87504aaaad6aba080de4fb6e08118d7 /Tools | |
parent | b9cbde3e326cec7037980c06f688a44d0998be9a (diff) | |
download | FreeBSD-ports-aa529a96feb2e2030d43973283365648dacf2576.zip FreeBSD-ports-aa529a96feb2e2030d43973283365648dacf2576.tar.gz |
small optimazation: don't compare versions that are equal
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/chkversion.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/chkversion.pl b/Tools/scripts/chkversion.pl index ee048ba..63f48e9 100755 --- a/Tools/scripts/chkversion.pl +++ b/Tools/scripts/chkversion.pl @@ -178,7 +178,7 @@ while (<VERSIONS>) { $newversion =~ s/^.*-//; $oldversion =~ s/^.*-//; - my $result = readfrom '', + my $result = $newversion eq $oldversion ? '=' : readfrom '', $pkg_version, '-t', $newversion, $oldversion; if ($result eq '<') { $backwards{$origin} = "$pkgname{$origin} < $version"; |