diff options
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index fd7c977ee2f..652f23fdb00 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.19 2007/05/07 14:29:24 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.20 2007/05/08 08:44:17 espie Exp $ # # Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org> # @@ -65,6 +65,13 @@ sub findstem return $self->{stemlist}->findstem($stem); } +sub match_spec +{ + my ($self, $spec) = @_; + require OpenBSD::PkgSpec; + return OpenBSD::PkgSpec::match($spec, @{$self->list}); +} + sub wipe_info { my ($self, $pkg) = @_; |