From: Zac Medico Date: Sun, 22 Jun 2008 23:15:19 +0000 (-0000) Subject: Bug #228939 - Fix display list interaction with --tree mode to prevent X-Git-Tag: v2.2_rc2~354 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98cf6467bc43c2167adbcc6a51977a392c07772c;p=portage.git Bug #228939 - Fix display list interaction with --tree mode to prevent display of a duplicate list. svn path=/main/trunk/; revision=10761 --- 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()