From: Zac Medico Date: Mon, 2 Jul 2007 03:54:51 +0000 (-0000) Subject: Clone asap_nodes so that iteration is safe for node removal. X-Git-Tag: v2.2_pre1~1098 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=319a8709009f2d3b994b4405f228fb1a0a59bcab;p=portage.git Clone asap_nodes so that iteration is safe for node removal. svn path=/main/trunk/; revision=7124 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 4e1b7337b..b7aedde07 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2102,7 +2102,7 @@ class depgraph(object): 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