diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-07-03 17:02:03 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-07-03 17:02:03 +0000 |
commit | 1d4d82b1cfc892ee0479870cba2709f688721f3d (patch) | |
tree | e8f6d60c0be062557bb5fbe184fb1d487673fde1 /usr.sbin | |
parent | fc3271b73607283fb01718b036a3f11639385d83 (diff) |
allow pkg_mklocatedb -p to work again; from espie@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 8 |
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 |