summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-14 23:23:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-14 23:23:35 +0000
commitd23a8f352fcd67e73c18a31a088bf28ac805546e (patch)
tree6d93cd0e8ac4c9abc6682458f340307bc4457ce4 /usr.sbin
parent5d695f0aeb21013be01df184f5acde7811d4104e (diff)
if there's no identifiable version in the spec, and in the package name,
then it matches when it is equal.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgSpec.pm8
1 files 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 <espie@openbsd.org>
#
@@ -200,7 +200,11 @@ sub subpattern_match
check_flavor($flavor, $flavorspec)) {
push(@result, $_);
}
- }
+ } else {
+ if ($vspec eq '') {
+ push(@result, $_);
+ }
+ }
}
return @result;