summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-26 20:34:18 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-26 20:34:18 +0000
commit1b2d93df00e557b48daf3add93c0d6ec0c04c640 (patch)
treee1f5e18ffe508f390c8783b3c7b172aa367e815b
parentbf630872c3ac123d0e071f86d6f47d07f0597807 (diff)
downloadportage-1b2d93df00e557b48daf3add93c0d6ec0c04c640.tar.gz
portage-1b2d93df00e557b48daf3add93c0d6ec0c04c640.tar.bz2
portage-1b2d93df00e557b48daf3add93c0d6ec0c04c640.zip
Bug #252572 - Fix a loop condition inside depgraph._serialize_tasks() which
can cause an infinite loop that's triggered by unresolvable blockers. svn path=/main/trunk/; revision=12348
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 714b7daae..e34f7ab35 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6838,7 +6838,7 @@ class depgraph(object):
selected_nodes = list(selected_nodes)
selected_nodes.sort(cmp_circular_bias)
- if not selected_nodes and not myblocker_uninstalls.is_empty():
+ if not selected_nodes and myblocker_uninstalls.leaf_nodes():
# An Uninstall task needs to be executed in order to
# avoid conflict if possible.
min_parent_deps = None