From: Zac Medico Date: Mon, 2 Jul 2007 03:55:16 +0000 (-0000) Subject: Clone asap_nodes so that iteration is safe for node removal. (trunk r7124) X-Git-Tag: v2.1.3~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a4c16d28fbce791ef6047c522161faa3d98220c;p=portage.git Clone asap_nodes so that iteration is safe for node removal. (trunk r7124) svn path=/main/branches/2.1.2/; revision=7125 --- 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