diff options
Diffstat (limited to 'usr.sbin/pkg_add/pkg_info')
-rw-r--r-- | usr.sbin/pkg_add/pkg_info | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_info b/usr.sbin/pkg_add/pkg_info index 7224747828e..409493f087a 100644 --- a/usr.sbin/pkg_add/pkg_info +++ b/usr.sbin/pkg_add/pkg_info @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_info,v 1.51 2007/05/14 10:27:46 espie Exp $ +# $OpenBSD: pkg_info,v 1.52 2007/05/14 10:43:45 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -142,7 +142,7 @@ sub find_by_spec require OpenBSD::PkgSpec; require OpenBSD::PackageRepository::Installed; - return sort(OpenBSD::PkgSpec->new($pat)->match_repo(OpenBSD::PackageRepository::Installed->new)); + return sort(OpenBSD::PackageRepository::Installed->new->match(OpenBSD::PkgSpec->new($pat))); } sub filter_files |