Fix merge order calculation so that the circular runtime path isn't entered
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:14:58 +0000 (05:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:14:58 +0000 (05:14 -0000)
when it's possible to select a node that only has unsatisfied PDEPEND. This
reverts an unintended change from the patch for bug #250020, and solves a
problem with libperl being merged after perl when building stage 1.
(trunk r12613)

svn path=/main/branches/2.1.6/; revision=12891

pym/_emerge/__init__.py

index dcbdfee4ad005b4ad20f6bac8171a5a9693fc741..b1e38a9183cf21b261177ed1a1ccad34a7c0203f 100644 (file)
@@ -7012,7 +7012,8 @@ class depgraph(object):
                                                break
                        if not selected_nodes and \
                                not (prefer_asap and asap_nodes):
-                               for i in xrange(priority_range.NONE, priority_range.SOFT + 1):
+                               for i in xrange(priority_range.NONE,
+                                       priority_range.MEDIUM_SOFT + 1):
                                        ignore_priority = priority_range.ignore_priority[i]
                                        nodes = get_nodes(ignore_priority=ignore_priority)
                                        if nodes: