From 695e7fe4c6effd1e744d38cf3dfbdad7a34e6e59 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 2 Jul 2007 01:53:24 +0000 Subject: Move medium priority out of ignore_priority_range and handle it separately. (trunk r7118) svn path=/main/branches/2.1.2/; revision=7119 --- bin/emerge | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bin/emerge') diff --git a/bin/emerge b/bin/emerge index be9184066..f84260f51 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2065,7 +2065,7 @@ class depgraph: break ignore_priority_range = [None] ignore_priority_range.extend( - xrange(DepPriority.MIN, DepPriority.MEDIUM + 1)) + xrange(DepPriority.MIN, DepPriority.SOFT + 1)) tree_mode = "--tree" in self.myopts while not mygraph.empty(): ignore_priority = None @@ -2107,7 +2107,9 @@ class depgraph: if not selected_nodes: # settle for a root node selected_nodes = [nodes[0]] - else: + if not nodes: + nodes = get_nodes(ignore_priority=DepPriority.MEDIUM) + if nodes: """Recursively gather a group of nodes that RDEPEND on eachother. This ensures that they are merged as a group and get their RDEPENDs satisfied as soon as possible.""" @@ -2124,10 +2126,6 @@ class depgraph: mergeable_nodes, selected_nodes, child): return False return True - # If necessary, resample the leaf nodes so that they - # include all nodes whose hard deps are satisfied. - if ignore_priority < DepPriority.MEDIUM: - nodes = get_nodes(ignore_priority=DepPriority.MEDIUM) mergeable_nodes = set(nodes) for ignore_priority in xrange(DepPriority.SOFT, DepPriority.MEDIUM_SOFT + 1): -- cgit v1.2.3-1-g7c22