summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-14 18:27:36 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-14 18:27:36 +0000
commit62adef819a460f68cf9bcdfa4f9fdc2db3edb5fd (patch)
treedc797b38935cb21b976037d2ba77936ce94b23d3
parent651c575391fd442b3a6f5d33ca05d2ec108cc1c0 (diff)
downloadportage-62adef819a460f68cf9bcdfa4f9fdc2db3edb5fd.tar.gz
portage-62adef819a460f68cf9bcdfa4f9fdc2db3edb5fd.tar.bz2
portage-62adef819a460f68cf9bcdfa4f9fdc2db3edb5fd.zip
For bug #158100, use an exact reversal of the actual merge order for --tree output. It's more efficient than doing 2 order calculations.
svn path=/main/trunk/; revision=5965
-rwxr-xr-xbin/emerge5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index 1c8e02f6a..f0809ab39 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -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=[]