diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-27 22:40:43 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-27 22:40:43 +0000 |
commit | 5b2d04d5ccd32066d398f578621fb5d670a66b5a (patch) | |
tree | 74b8cc14b437960e24776cb90882a294dd8e2592 /usr.sbin | |
parent | b8d13cf22d45881ee605da9d46c097906ead5c12 (diff) |
if we can't read this packing-list, this is not really an issue.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 6ee7bdf300e..6b9e0e74cc5 100644 --- a/usr.sbin/pkg_add/OpenBSD/Update.pm +++ b/usr.sbin/pkg_add/OpenBSD/Update.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Update.pm,v 1.47 2004/12/21 01:43:58 espie Exp $ +# $OpenBSD: Update.pm,v 1.48 2004/12/27 22:40:42 espie Exp $ # # Copyright (c) 2004 Marc Espie <espie@openbsd.org> # @@ -339,6 +339,10 @@ sub convert_to_requiring my $pkg = shift; my $plist = OpenBSD::PackingList->from_installation($pkg); + if (!defined $plist) { + Warn "Couldn't read plist for $pkg\n"; + return; + } my $r = OpenBSD::Requiring->new($pkg); for my $item (@{$plist->{pkgdep}}) { $r->add($item->{name}); |