diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-12 14:52:27 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-12 14:52:27 +0000 |
commit | b04c1f3e616aacf08976b9873e18ca3480076e0c (patch) | |
tree | f97eb8a3dad7e8bfcc0d4d85eb4cac98f2361204 /usr.sbin | |
parent | 194aab5fb2e5b686c9638da7036cd3d9e359cc10 (diff) |
use match_ref consistently
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageLocator.pm | 6 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm index fc36f394b6c..784058e32f3 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageLocator.pm,v 1.61 2007/05/12 14:16:38 espie Exp $ +# $OpenBSD: PackageLocator.pm,v 1.62 2007/05/12 14:52:26 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -124,11 +124,11 @@ sub match_spec @avail = available(); } if (ref $spec) { - return $spec->match(@avail); + return $spec->match_ref(\@avail); } else { require OpenBSD::PkgSpec; - return OpenBSD::PkgSpec::match($spec, @avail); + return OpenBSD::PkgSpec::match_ref($spec, \@avail); } } diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index aa9b25e0ba8..3dbd7c42e8d 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.22 2007/05/12 14:16:38 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.23 2007/05/12 14:52:26 espie Exp $ # # Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org> # @@ -69,7 +69,7 @@ sub match_spec { my ($self, $spec) = @_; if (ref $spec) { - return $spec->match($self->list); + return $spec->match_ref($self->list); } else { require OpenBSD::PkgSpec; return OpenBSD::PkgSpec::match_ref($spec, $self->list); |