In JobStatusDisplay._update(), set _displayed = True when ruturning early due
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Oct 2008 05:11:17 +0000 (05:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Oct 2008 05:11:17 +0000 (05:11 -0000)
to stdout not being a tty. This fixes a problem excess output which was
reported by Daniel Robbins.

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

pym/_emerge/__init__.py

index 0e7f241fd78877fac65948dd3cba5adafdeca160..a29334f171b0680508208d0339ed932f01d74617 100644 (file)
@@ -8716,6 +8716,7 @@ class JobStatusDisplay(object):
                out = self.out
                if not self._isatty:
                        out.write(self._format_msg(msg) + self._term_codes['newline'])
+                       self._displayed = True
                        return
 
                if self._displayed: