summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-03-13 14:06:59 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-03-13 14:06:59 +0000
commit418ffcde3d5e4c2a4f64a7d6c464c9a5d2408763 (patch)
tree05cb8e5498a7c5d9a591c573df517ca432b71468 /usr.sbin
parentef51747b37f29898730dbdaba22066b1ee3ee84d (diff)
repair pkg_add -
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageName.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageName.pm b/usr.sbin/pkg_add/OpenBSD/PackageName.pm
index 2401a7e087c..bf81dd61fc2 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageName.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageName.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageName.pm,v 1.10 2006/03/04 11:31:18 espie Exp $
+# $OpenBSD: PackageName.pm,v 1.11 2006/03/13 14:06:58 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -50,7 +50,7 @@ sub splitstem
sub is_stem
{
local $_ = shift;
- if (m/\-\d/) {
+ if (m/\-\d/ || $_ eq '-') {
return 0;
} else {
return 1;