diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-19 09:50:32 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-19 09:50:32 +0000 |
commit | 8df27b6759a173443ccb89f6b88ed44ca1460b2e (patch) | |
tree | c676dacefcfef6afb72f4c101330abbacfa2c811 | |
parent | ce40ab4ad797c44e3a3aa2e3e7488435c9b70283 (diff) |
and I forgot this one
-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; |