Clone asap_nodes so that iteration is safe for node removal.
authorZac Medico <zmedico@gentoo.org>
Mon, 2 Jul 2007 03:54:51 +0000 (03:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 2 Jul 2007 03:54:51 +0000 (03:54 -0000)
svn path=/main/trunk/; revision=7124

pym/emerge/__init__.py

index 4e1b7337b955657d121845b4f856a624df93e883..b7aedde07a4f527de4d12719b37acb71aaaec546 100644 (file)
@@ -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