From 6a4c16d28fbce791ef6047c522161faa3d98220c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 2 Jul 2007 03:55:16 +0000 Subject: [PATCH] Clone asap_nodes so that iteration is safe for node removal. (trunk r7124) svn path=/main/branches/2.1.2/; revision=7125 --- bin/emerge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index 618433e60..49907031f 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2071,7 +2071,7 @@ class depgraph: selected_nodes = None if asap_nodes: """ASAP nodes are merged before their soft deps.""" - for node in asap_nodes: + for node in asap_nodes[:]: if not mygraph.contains(node): asap_nodes.remove(node) continue -- 2.26.2