From f3f52f34475ca68bce3bf9aad3faad77e24288fd Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 15 Dec 2004 01:07:11 +0000 Subject: move -n down into RequiredBy and PackingList (as $main::not, since we don't want to load RequiredBy all the time). Remove a few $state->{not} tests that are no longer needed. pkg_add -n / pkg_delete -n should work much better when they need to handle multiple dependencies. (todo: kill plist caches, finish replacing with specialized caches like libraries). --- usr.sbin/pkg_add/OpenBSD/Update.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD/Update.pm') diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 802956e522f..9da4bba7e38 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.39 2004/12/12 11:26:16 espie Exp $ +# $OpenBSD: Update.pm,v 1.40 2004/12/15 01:07:10 espie Exp $ # # Copyright (c) 2004 Marc Espie # @@ -361,7 +361,6 @@ sub walk_depends_closure push(@todo, $pkg2); print "\t$pkg2\n" if $state->{beverbose}; $done->{$pkg2} = 1; - next if $state->{not}; $write->add($pkg2); my $l = OpenBSD::Requiring->new($pkg2); if (!$l->list()) { -- cgit v1.2.3