diff options
Diffstat (limited to 'usr.sbin/pkg_add/pkg_info')
-rw-r--r-- | usr.sbin/pkg_add/pkg_info | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/pkg_info b/usr.sbin/pkg_add/pkg_info index 409493f087a..7f8ed3d7ae1 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.52 2007/05/14 10:43:45 espie Exp $ +# $OpenBSD: pkg_info,v 1.53 2007/05/14 10:53:31 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -78,7 +78,7 @@ sub find_pkg return; } if (OpenBSD::PackageName::is_stem($pkgname)) { - my @l = sort ($repo->match(OpenBSD::PackageName::Stem->new($pkgname))); + my @l = sort ($repo->match(OpenBSD::Search::Stem->new($pkgname))); if (@l != 0) { for my $p (@l) { &$code($p, $repo->find($p)); @@ -142,7 +142,7 @@ sub find_by_spec require OpenBSD::PkgSpec; require OpenBSD::PackageRepository::Installed; - return sort(OpenBSD::PackageRepository::Installed->new->match(OpenBSD::PkgSpec->new($pat))); + return sort(OpenBSD::PackageRepository::Installed->new->match(OpenBSD::Search::PkgSpec->new($pat))); } sub filter_files @@ -370,7 +370,7 @@ if ($opt_Q) { require OpenBSD::PackageLocator; print "PKG_PATH=$ENV{PKG_PATH}\n" if $opt_v; - my $partial = OpenBSD::PackageName::PartialStem->new($opt_Q); + my $partial = OpenBSD::Search::PartialStem->new($opt_Q); for my $p (sort OpenBSD::PackageLocator->match($partial)) { print $p, is_installed($p) ? " (installed)" : "" , "\n"; |