summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-13 13:12:22 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-13 13:12:22 +0000
commit1ce313db22a6e29e1eabd2521b919d96a10825af (patch)
treed1c0e89917dab59b4a9fdb548e32c66a838dbd84 /usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
parent6a5affe55843f23286e7d751d5e8e324b145dcb9 (diff)
also create PartialStem objects, and create a generic
PackageLocator->match($o), where $o can be a spec, a stem, a partialstem.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
index e74a19db8d5..315d3167adf 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepositoryList.pm,v 1.7 2007/05/13 10:10:35 espie Exp $
+# $OpenBSD: PackageRepositoryList.pm,v 1.8 2007/05/13 13:12:21 espie Exp $
#
# Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org>
#
@@ -134,6 +134,12 @@ sub match_spec
return $self->_first_of('match_spec', $filter, $spec);
}
+sub match_repo
+{
+ my ($self, $spec, $filter) = @_;
+ return $self->_first_of('match_repo', $filter, $spec);
+}
+
sub cleanup
{
my $self = shift;