diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-14 18:35:33 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-14 18:35:33 +0000 |
commit | 5e177c8b87154ebc12b46a666ae6116bc164eaed (patch) | |
tree | 2eb577132f438e2f5d6e0f7a4a9ac2f361bd0cea /bin/emerge | |
parent | cc3b4d8e79e5e1dba7abcd08462dc6a027b34366 (diff) | |
download | portage-5e177c8b87154ebc12b46a666ae6116bc164eaed.tar.gz portage-5e177c8b87154ebc12b46a666ae6116bc164eaed.tar.bz2 portage-5e177c8b87154ebc12b46a666ae6116bc164eaed.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. (trunk r5965)
svn path=/main/branches/2.1.2/; revision=5966
Diffstat (limited to 'bin/emerge')
-rwxr-xr-x | bin/emerge | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge index 06e9b9eb2..1acbfe71d 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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=[] |