summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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=[]