From 7b89c862dd424112b4a8cacae0ae5b41d9ef07a3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 6 Nov 2006 10:17:54 +0000 Subject: [PATCH] Make sure the node is still in the graph so that a KeyError can't happen. svn path=/main/trunk/; revision=4953 --- bin/emerge | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/emerge b/bin/emerge index 996924dcd..e6db286ed 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1520,6 +1520,9 @@ class depgraph: if asap_nodes: """ASAP nodes are merged before their soft deps.""" for node in asap_nodes: + if not mygraph.contains(node): + asap_nodes.remove(node) + continue if not mygraph.child_nodes(node, ignore_priority=DepPriority.SOFT): nodes = [node] -- 2.26.2