summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index cb017c9bc..2de005815 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -4405,7 +4405,10 @@ class depgraph(object):
def _show_merge_list(self):
if self._serialized_tasks_cache is not None and \
- self._serialized_tasks_cache != self._displayed_list:
+ not (self._displayed_list and \
+ (self._displayed_list == self._serialized_tasks_cache or \
+ self._displayed_list == \
+ list(reversed(self._serialized_tasks_cache)))):
display_list = self._serialized_tasks_cache[:]
if "--tree" in self.myopts:
display_list.reverse()