diff options
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm index 1a882107ed5..935ba2d299f 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.15 2007/05/19 09:18:55 espie Exp $ +# $OpenBSD: PackageRepositoryList.pm,v 1.16 2007/05/19 09:50:31 espie Exp $ # # Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org> # @@ -66,6 +66,18 @@ sub match return (); } +sub match_locations +{ + my ($self, @search) = @_; + for my $repo (@{$self->{list}}) { + my @l = $repo->match_locations(@search); + if (@l > 0) { + return @l; + } + } + return (); +} + sub cleanup { my $self = shift; |