summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-18 12:40:36 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-18 12:40:36 +0000
commit898b8e4bb55d55a12d8a35ed33118fc68094ed3a (patch)
treedabc6f5df3c5dc7278fb200bb9fcab15cf38e4e3 /usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
parentc0024db4cb24d62dae405a0b4d26fd754d43a7fd (diff)
also strip +CONTENTS
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageInfo.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageInfo.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
index 5958edaa20b..be15a669e9f 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageInfo.pm,v 1.28 2007/05/15 08:00:59 espie Exp $
+# $OpenBSD: PackageInfo.pm,v 1.29 2007/05/18 12:40:35 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -151,6 +151,7 @@ sub installed_name($)
my $name = shift;
$name =~ s|/$||;
$name =~ s|^\Q$pkg_db\E/?||;
+ $name =~ s|/\+CONTENTS$||;
return $name;
}