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

bin/emerge

index 618433e6044d32f71ea134d0408874de201e3a0b..49907031f4b92d5901c4b669b9f62aaafe51e73a 100755 (executable)
@@ -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