diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-08-12 16:57:16 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-08-12 16:57:16 +0000 |
commit | 97a1b8faa75feb0f342279fa5d751c0c1d7bd55c (patch) | |
tree | 142a0e5104e993898fe9b4cd29de59b7bc9e56a9 /usr.sbin/pkg_add/OpenBSD/SharedLibs.pm | |
parent | 67f5d1861c0f35e63b722710ed392df56f58e57e (diff) |
avoid warning message
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/SharedLibs.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/SharedLibs.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm b/usr.sbin/pkg_add/OpenBSD/SharedLibs.pm index edda030d729..05ca249e048 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.6 2004/12/28 14:50:38 espie Exp $ +# $OpenBSD: SharedLibs.pm,v 1.7 2005/08/12 16:57:15 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -152,7 +152,7 @@ sub add_package_libs sub add_bogus_package_libs { my $pkgname = $_[0]; - return if $done_plist->{$pkgname} == 2; + return if defined $done_plist->{$pkgname} && $done_plist->{$pkgname} == 2; $done_plist->{$pkgname} = 2; my $plist = OpenBSD::PackingList->from_installation($pkgname); if (!defined $plist) { |