summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index 683cbe64bcd..89687a787d0 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.116 2007/05/29 12:36:53 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.117 2007/05/29 13:00:17 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -1260,7 +1260,12 @@ sub add
sub fullname
{
my $self = shift;
- return $self->infodir.'/'.$self->category;
+ my $d = $self->infodir;
+ if (defined $d) {
+ return $d.$self->category;
+ } else {
+ return undef;
+ }
}
package OpenBSD::PackingElement::FCONTENTS;