From feb7dd9882bcc1e1ffe650c19fb86e0b07e1045c Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 8 May 2007 08:42:03 +0000 Subject: spec match works better with a list --- usr.sbin/pkg_add/OpenBSD/PackageLocator.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm index 8772793c980..e425a622e16 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.59 2007/05/07 14:12:43 espie Exp $ +# $OpenBSD: PackageLocator.pm,v 1.60 2007/05/08 08:42:02 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -125,7 +125,7 @@ sub match_spec } require OpenBSD::PkgSpec; - return OpenBSD::PkgSpec::match($spec); + return OpenBSD::PkgSpec::match($spec, @avail); } my $stemlist; -- cgit v1.2.3