diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 10:50:35 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 10:50:35 +0000 |
commit | 27b13d6cff64beb930a994f168068f7e88fd3010 (patch) | |
tree | 7c303430bef1b3c5c6367c853f01dd52206d142f | |
parent | 6740d45284f3ba526964fc36617f40054d1497eb (diff) |
kill one use of old-style match
-rw-r--r-- | usr.sbin/pkg_add/pkg_info | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_info b/usr.sbin/pkg_add/pkg_info index 37675c457d8..30b7f982453 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.78 2009/10/15 10:47:07 phessler Exp $ +# $OpenBSD: pkg_info,v 1.79 2009/11/10 10:50:34 espie Exp $ # # Copyright (c) 2003-2009 Marc Espie <espie@openbsd.org> # @@ -162,7 +162,9 @@ sub find_by_spec require OpenBSD::Search; require OpenBSD::PackageRepository::Installed; - return sort(OpenBSD::PackageRepository::Installed->new->match(OpenBSD::Search::PkgSpec->new($pat))); + my $r = OpenBSD::PackageRepository::Installed->new->match_locations(OpenBSD::Search::PkgSpec->new($pat)); + + return sort (map {$_->name} @$r); } sub filter_files |