diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-29 13:17:49 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-29 13:17:49 +0000 |
commit | 5816a7fd0f4f02644d68e465adf9489073b335b5 (patch) | |
tree | f9d1f2b610b371ec1ca7a3c805a9e5f095db40dd | |
parent | 78e91c5a806337da507021d5916f3b720edfefbd (diff) |
set_infodir only if plist got defined.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index 996895759d1..a875fcf5e95 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.68 2007/05/29 13:00:17 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.69 2007/05/29 13:17:48 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -419,7 +419,9 @@ sub from_installation if (defined $plist && $code == \&DependOnly) { $plist_cache->{$pkgname} = $plist; } - $plist->set_infodir(OpenBSD::PackageInfo::installed_info($pkgname)); + if (defined $plist) { + $plist->set_infodir(OpenBSD::PackageInfo::installed_info($pkgname)); + } return $plist; } |