Fix the minimum index for pruning consecutive duplicate nodes.
authorZac Medico <zmedico@gentoo.org>
Sun, 4 Mar 2007 01:49:32 +0000 (01:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 4 Mar 2007 01:49:32 +0000 (01:49 -0000)
svn path=/main/trunk/; revision=6164

pym/emerge/__init__.py

index a291e73dcc50a406a9c6fb5a892cd9c783960afd..0721915b6c503b0ed8ff0ad298960fd9d3af7da5 100644 (file)
@@ -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