summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-05-18 08:53:39 +0000
committereik <eik@FreeBSD.org>2004-05-18 08:53:39 +0000
commitaa529a96feb2e2030d43973283365648dacf2576 (patch)
tree37db4314c87504aaaad6aba080de4fb6e08118d7 /Tools
parentb9cbde3e326cec7037980c06f688a44d0998be9a (diff)
downloadFreeBSD-ports-aa529a96feb2e2030d43973283365648dacf2576.zip
FreeBSD-ports-aa529a96feb2e2030d43973283365648dacf2576.tar.gz
small optimazation: don't compare versions that are equal
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/chkversion.pl2
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";
OpenPOWER on IntegriCloud