summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pod
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-10 11:01:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-10 11:01:16 +0000
commitcc7b3eed89422d303f85e93252a5a1506381d1d9 (patch)
tree7f7c558ca5386c9a3fa866a6eaee0f8b926678ca /usr.sbin/pkg_add/pod
parentee298198f1e32c722f1d32805e4d765bd81cad0a (diff)
tweak doc to only reference location objects
Diffstat (limited to 'usr.sbin/pkg_add/pod')
-rw-r--r--usr.sbin/pkg_add/pod/OpenBSD::Search.pod9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pod/OpenBSD::Search.pod b/usr.sbin/pkg_add/pod/OpenBSD::Search.pod
index 90b629ca3a1..ae2bb40db65 100644
--- a/usr.sbin/pkg_add/pod/OpenBSD::Search.pod
+++ b/usr.sbin/pkg_add/pod/OpenBSD::Search.pod
@@ -1,4 +1,4 @@
-$OpenBSD: OpenBSD::Search.pod,v 1.1 2007/05/14 13:15:28 espie Exp $
+$OpenBSD: OpenBSD::Search.pod,v 1.2 2009/11/10 11:01:15 espie Exp $
=head1 NAME
@@ -18,7 +18,7 @@ OpenBSD::Search - package names matching framework
my $inst = OpenBSD::PackageRepository::Installed->new;
- my @list = $inst->match($search_object, $filter_object);
+ my $list_ref = $inst->match_locations($search_object, $filter_object);
=head1 DESCRIPTION
@@ -27,7 +27,10 @@ C<OpenBSD::Search> provides a search infrastructure
for C<OpenBSD::PackageRepository> objects.
A given repository can be searched for existing packages using
-C<$repo-E<gt>match($search1, $search2);>
+C<$repo-E<gt>match_locations($search1, $filter1, ...);>
+
+It returns a reference to a list of matching C<OpenBSD::PackageLocation>
+objects.
A repository list can be searched in a similar way: the search
proceeds through each repository in the list, and stops as soon