From: Zac Medico Date: Fri, 26 Dec 2008 20:34:18 +0000 (-0000) Subject: Bug #252572 - Fix a loop condition inside depgraph._serialize_tasks() which X-Git-Tag: v2.2_rc20~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b2d93df00e557b48daf3add93c0d6ec0c04c640;p=portage.git 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 --- 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