From: Zac Medico Date: Sun, 4 Mar 2007 01:49:32 +0000 (-0000) Subject: Fix the minimum index for pruning consecutive duplicate nodes. X-Git-Tag: v2.2_pre1~1610 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8555464ba3dede7433a95d2c2e83c617216bbb1;p=portage.git Fix the minimum index for pruning consecutive duplicate nodes. svn path=/main/trunk/; revision=6164 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index a291e73dc..0721915b6 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2384,7 +2384,7 @@ class depgraph: last_merge_depth = 0 for i in xrange(len(mylist)-1,-1,-1): graph_key, depth, ordered = mylist[i] - if not ordered and depth == 0 and i > 1 \ + if not ordered and depth == 0 and i > 0 \ and graph_key == mylist[i-1][0] and \ mylist[i-1][1] == 0: # An ordered node got a consecutive duplicate when the tree was