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:35:33 +0000 (18:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Feb 2007 18:35:33 +0000 (18:35 -0000)
svn path=/main/branches/2.1.2/; revision=5966

bin/emerge

index 06e9b9eb25f50e609b10b4d7a578c8e0f9c71a5c..1acbfe71de5d9fd356d4b66b09127f22004250a1 100755 (executable)
@@ -1962,6 +1962,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=[]