From 98cf6467bc43c2167adbcc6a51977a392c07772c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Jun 2008 23:15:19 +0000 Subject: [PATCH] Bug #228939 - Fix display list interaction with --tree mode to prevent display of a duplicate list. svn path=/main/trunk/; revision=10761 --- pym/_emerge/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.26.2