diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageRepository.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index 4b735608bc6..ce389f8d360 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.28 2007/05/13 13:37:00 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.29 2007/05/13 17:00:02 espie Exp $ # # Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org> # @@ -67,8 +67,12 @@ sub stemlist sub match { - my ($self, $search) = @_; - return $search->match_repo($self); + my ($self, $search, $filter) = @_; + if (defined $filter) { + return &$filter($search->match_repo($self)); + } else { + return $search->match_repo($self); + } } sub wipe_info |