From 1f94b8d9a850dbb366ebbd30c37f8e1446017987 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 14 May 2007 10:53:32 +0000 Subject: put search objects into a search class. --- usr.sbin/pkg_add/pkg_info | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/pkg_add/pkg_info') 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 # @@ -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"; -- cgit v1.2.3