small optimazation: don't compare versions that are equal

This commit is contained in:
Oliver Eikemeier 2004-05-18 08:53:39 +00:00
parent f5fc337074
commit f21b7ffdfa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109409

View file

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