diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-18 13:39:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-18 13:39:18 +0000 |
commit | d9d2b585d2f84d2d9aed7616d4f58321795a739e (patch) | |
tree | f2cd3b20b2cd53a554f80153539e49f37695bcbf | |
parent | d364ebd99eecf619d794d3600c98daa08fb29d50 (diff) |
oops, don't compute fullname unless we know we can.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 8598dd07b08..e3011b06aef 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.41 2004/12/18 13:20:54 espie Exp $ +# $OpenBSD: Update.pm,v 1.42 2004/12/18 13:39:17 espie Exp $ # # Copyright (c) 2004 Marc Espie <espie@openbsd.org> # @@ -451,6 +451,7 @@ sub figure_out_libs my $result = []; for my $item (@{$plist->{items}}) { + next unless $item->IsFile(); $has->{$item->fullname()} = 1; } |