diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-09 17:54:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-09 17:54:56 +0000 |
commit | abd4fcae107559bbbb70eb6623304448ea2e66ef (patch) | |
tree | 82d10de3892b6d7483702981f6b36a404ae74813 /usr.sbin | |
parent | 9473d5ca6183970c256efe065773dda18e76cac4 (diff) |
fix, need to keep =version for "no need to update" to occur...
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Search.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Search.pm b/usr.sbin/pkg_add/OpenBSD/Search.pm index a1b6823aa31..09103bc5d5b 100644 --- a/usr.sbin/pkg_add/OpenBSD/Search.pm +++ b/usr.sbin/pkg_add/OpenBSD/Search.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Search.pm,v 1.12 2009/11/09 17:50:24 espie Exp $ +# $OpenBSD: Search.pm,v 1.13 2009/11/09 17:54:55 espie Exp $ # # Copyright (c) 2007 Marc Espie <espie@openbsd.org> # @@ -201,7 +201,7 @@ sub { my $l = shift; my $r = []; for my $e (@$l) { - if ($f->{version}->compare($e->pkgname->{version}) < 0) { + if ($f->{version}->compare($e->pkgname->{version}) <= 0) { push(@$r, $e); } } |