diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-29 13:00:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-29 13:00:18 +0000 |
commit | 507a0e6b427f71f9fa70f4335bbf2e551c575e46 (patch) | |
tree | 5aaf69ff247989edfc8dd088238d352d325f3c33 /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | f284e3ff24ab1bda951d6eafa0e8fa0e61a2166e (diff) |
a few more details so that infodirs become useful.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 9 |
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; |