summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-02 03:54:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-02 03:54:51 +0000
commit319a8709009f2d3b994b4405f228fb1a0a59bcab (patch)
tree8a84e86d6eab391f2008026ee6c0cb76a90a7244
parentc1f7b0d92443b591ce15d17316b65141aee3f4f6 (diff)
downloadportage-319a8709009f2d3b994b4405f228fb1a0a59bcab.tar.gz
portage-319a8709009f2d3b994b4405f228fb1a0a59bcab.tar.bz2
portage-319a8709009f2d3b994b4405f228fb1a0a59bcab.zip
Clone asap_nodes so that iteration is safe for node removal.
svn path=/main/trunk/; revision=7124
-rw-r--r--pym/emerge/__init__.py2
1 files changed, 1 insertions, 1 deletions
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