diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 10:52:45 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-11-10 10:52:45 +0000 |
commit | aa7270d6f675d64c79f776bf47c480f38dad8bb0 (patch) | |
tree | 2e84bd41ab3bd5c75cc422d26f0a8c326c7624de | |
parent | 5ffa1d75938d8632bd717fa5616f358d79f77ae7 (diff) |
zap 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 30b7f982453..cf3559b113e 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.79 2009/11/10 10:50:34 espie Exp $ +# $OpenBSD: pkg_info,v 1.80 2009/11/10 10:52:44 espie Exp $ # # Copyright (c) 2003-2009 Marc Espie <espie@openbsd.org> # @@ -454,7 +454,9 @@ if ($opt_Q) { print "PKG_PATH=$ENV{PKG_PATH}\n" if $opt_v; my $partial = OpenBSD::Search::PartialStem->new($opt_Q); - for my $p (sort OpenBSD::PackageLocator->match($partial)) { + my $r = OpenBSD::PackageLocator->match_locations($partial); + + for my $p (sort map {$_->name} @$r) { print $p, is_installed($p) ? " (installed)" : "" , "\n"; } |