From ab89b48e7643ca72d8ac6fcd60463d536eda11c3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Nov 2007 04:31:28 +0000 Subject: [PATCH] Fix ignore_priority logic in depgraph.altlist() in order to handle some cases where it was possible for nodes to be selected without their PDEPENDs being propperly added to the asap_nodes list. svn path=/main/trunk/; revision=8360 --- pym/_emerge/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index d47739438..0eb66250e 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2810,6 +2810,14 @@ class depgraph(object): if selected_nodes: break + # If any nodes have been selected here, it's always + # possible that anything up to a MEDIUM_SOFT priority + # relationship has been ignored. This state is recorded + # in ignore_priority so that relevant nodes will be + # added to asap_nodes when appropriate. + if selected_nodes: + ignore_priority = DepPriority.MEDIUM_SOFT + if prefer_asap and asap_nodes and not selected_nodes: # We failed to find any asap nodes to merge, so ignore # them for the next iteration. -- 2.26.2