diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-21 11:43:47 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-21 11:43:47 +0000 |
commit | 039c33d6b792138c0fca18f09a1723d374e659a6 (patch) | |
tree | 23cd45932f083c58d0ce4a2f79088e27dfedd1f0 /usr.sbin/pkg_add/OpenBSD | |
parent | 4928dc84a8e0bcbbce32bbff4a8d2334925afed3 (diff) |
if we can't get this packing-list, this is not dramatic
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/SharedLibs.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm index 5788988cd99..47ca79ca2ff 100644 --- a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm +++ b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: SharedLibs.pm,v 1.4 2004/11/23 11:12:56 espie Exp $ +# $OpenBSD: SharedLibs.pm,v 1.5 2004/12/21 11:43:46 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -118,6 +118,10 @@ sub add_package_libs $done_plist->{$pkgname} = 1; my $plist = OpenBSD::PackingList->from_installation($pkgname, \&OpenBSD::PackingList::LibraryOnly); + if (!defined $plist) { + Warn "Can't read plist for $pkgname\n"; + return; + } if (defined $wantpath) { if (defined $plist->{extrainfo}) { $pkgname = $plist->{extrainfo}->{subdir}; |