diff options
| author | 2004-12-21 11:43:46 +0000 | |
|---|---|---|
| committer | 2004-12-21 11:43:46 +0000 | |
| commit | cf7af0737a69b0ffd8b019dc3cc6e97a74550c3b (patch) | |
| tree | 39de0f2491ddda9423144a04a952752c1402ef4b | |
| parent | Check that if_type != IFT_CARP before using ifp->if_carp. (diff) | |
| download | wireguard-openbsd-cf7af0737a69b0ffd8b019dc3cc6e97a74550c3b.tar.xz wireguard-openbsd-cf7af0737a69b0ffd8b019dc3cc6e97a74550c3b.zip | |
if we can't get this packing-list, this is not dramatic
| -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}; |
