summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-24 01:49:25 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-24 01:49:25 +0000
commite9224bfc7ad7724fe0b36bef1f09eb606e6338f6 (patch)
treeb2857da791d38c4575a7f051a32e72568ed70238
parentb51b1f64c97483a0d695a5ef212e9622c0bb148d (diff)
downloadportage-e9224bfc7ad7724fe0b36bef1f09eb606e6338f6.tar.gz
portage-e9224bfc7ad7724fe0b36bef1f09eb606e6338f6.tar.bz2
portage-e9224bfc7ad7724fe0b36bef1f09eb606e6338f6.zip
Reset the state variables for leaf node selection in depgraph.altlist()
when appropriate. svn path=/main/trunk/; revision=9950
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index bdb8e88e4..ef6c2de32 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3568,6 +3568,12 @@ class depgraph(object):
else:
ignored_uninstall_tasks.add(node)
break
+
+ # After dropping an Uninstall task, reset
+ # the state variables for leaf node selection and
+ # continue trying to select leaf nodes.
+ prefer_asap = True
+ accept_root_node = False
continue
if not selected_nodes: