From 1d4d82b1cfc892ee0479870cba2709f688721f3d Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Fri, 3 Jul 2009 17:02:03 +0000 Subject: allow pkg_mklocatedb -p to work again; from espie@ --- usr.sbin/pkg_add/OpenBSD/PackingList.pm | 8 ++++++-- 1 file 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 # @@ -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 -- cgit v1.2.3