From: Zac Medico Date: Thu, 29 May 2008 23:40:58 +0000 (-0000) Subject: When dropping deps from the resume list, make sure that the loop can't X-Git-Tag: v2.2_pre8~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9bd5127bd3f2ab18b71ecbc8a9fa03f2d1b23ed1;p=portage.git When dropping deps from the resume list, make sure that the loop can't be infinite. svn path=/main/trunk/; revision=10493 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 7aaefbf2b..c315af65d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8381,7 +8381,8 @@ def action_build(settings, trees, mtimedb, tuple(task) in unsatisfied_parents: continue pruned_mergelist.append(task) - if not pruned_mergelist: + if not pruned_mergelist or \ + len(pruned_mergelist) == len(mergelist): raise mergelist[:] = pruned_mergelist dropped_tasks.update(unsatisfied_parents)