From: Zac Medico Date: Sat, 3 Mar 2007 23:05:27 +0000 (-0000) Subject: Only prune duplicate consecutive nodes if they both have depth == 0. X-Git-Tag: v2.2_pre1~1613 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=adaa3f2f593de12b3221ccdbc0c8066dce21d76c;p=portage.git Only prune duplicate consecutive nodes if they both have depth == 0. svn path=/main/trunk/; revision=6158 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index e6b542835..4078d9e29 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2385,7 +2385,8 @@ class depgraph: for i in xrange(len(mylist)-1,-1,-1): graph_key, depth, ordered = mylist[i] if not ordered and depth == 0 and i > 1 \ - and graph_key == mylist[i-1][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 # being filled in. del mylist[i]