summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-05-18 08:53:39 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-05-18 08:53:39 +0000
commitf21b7ffdfa6571b7a9f290d15c5e59093adfa3e8 (patch)
tree540dba6bb4d794c95e39d9e44875451f1b1124fd /Tools
parent- Transfer maintainership to the submitter of last update (diff)
small optimazation: don't compare versions that are equal
Notes
Notes: svn path=/head/; revision=109409
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 ee048baeaf9e..63f48e90ad74 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";