From e9224bfc7ad7724fe0b36bef1f09eb606e6338f6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 24 Apr 2008 01:49:25 +0000 Subject: [PATCH] Reset the state variables for leaf node selection in depgraph.altlist() when appropriate. svn path=/main/trunk/; revision=9950 --- pym/_emerge/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.26.2