From d23a8f352fcd67e73c18a31a088bf28ac805546e Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 14 Aug 2005 23:23:35 +0000 Subject: if there's no identifiable version in the spec, and in the package name, then it matches when it is equal. --- usr.sbin/pkg_add/OpenBSD/PkgSpec.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm index 574311f1bd2..5e6fbbbd659 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PkgSpec.pm,v 1.1 2004/10/11 09:44:06 espie Exp $ +# $OpenBSD: PkgSpec.pm,v 1.2 2005/08/14 23:23:34 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie # @@ -200,7 +200,11 @@ sub subpattern_match check_flavor($flavor, $flavorspec)) { push(@result, $_); } - } + } else { + if ($vspec eq '') { + push(@result, $_); + } + } } return @result; -- cgit v1.2.3