diff options
Diffstat (limited to 'usr.sbin/pkg_add')
-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"; } |