summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingList.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
index d617a2df104..bdb397aba6c 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingList.pm,v 1.89 2009/06/25 07:41:04 espie Exp $
+# $OpenBSD: PackingList.pm,v 1.90 2009/07/03 17:02:02 naddy Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -368,7 +368,11 @@ sub set_pkgname
sub pkgname
{
my $self = shift;
- return $self->{name}->name;
+ if (defined $self->{name}) {
+ return $self->{name}->name;
+ } else {
+ return undef;
+ }
}
sub localbase