Bug #228939 - Fix display list interaction with --tree mode to prevent
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Jun 2008 23:15:19 +0000 (23:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Jun 2008 23:15:19 +0000 (23:15 -0000)
display of a duplicate list.

svn path=/main/trunk/; revision=10761

pym/_emerge/__init__.py

index cb017c9bc32f068a18e82ae4c4cd1a420d7116aa..2de005815900d25d6123b1601e4834a9fe258360 100644 (file)
@@ -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()