For bug #158100, use an exact reversal of the actual merge order for --tree output...
authorZac Medico <zmedico@gentoo.org>
Wed, 14 Feb 2007 18:27:36 +0000 (18:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Feb 2007 18:27:36 +0000 (18:27 -0000)
svn path=/main/trunk/; revision=5965

bin/emerge

index 1c8e02f6a030889ee535c2a20da7b55b7ebdca4f..f0809ab39023d78893a60149a902557203a0b21f 100755 (executable)
@@ -1965,6 +1965,11 @@ class depgraph:
        def altlist(self, reversed=False):
                if reversed in self._altlist_cache:
                        return self._altlist_cache[reversed][:]
+               if reversed:
+                       retlist = self.altlist()
+                       retlist.reverse()
+                       self._altlist_cache[reversed] = retlist[:]
+                       return retlist
                mygraph=self.digraph.copy()
                myblockers = self.blocker_digraph.copy()
                retlist=[]