From: Zac Medico Date: Fri, 21 Nov 2008 08:23:33 +0000 (-0000) Subject: In JobStatusDisplay, always flush the output stream after writing to it. X-Git-Tag: v2.2_rc15~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d4e2203a2ab025f42baa3b9d59f1047092b1fbb;p=portage.git In JobStatusDisplay, always flush the output stream after writing to it. svn path=/main/trunk/; revision=12014 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 4a78b54f1..72f48a31a 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8901,10 +8901,12 @@ class JobStatusDisplay(object): self.out.write( self._term_codes['carriage_return'] + \ self._term_codes['clr_eol']) + self.out.flush() self._displayed = False def _display(self, line): self.out.write(line) + self.out.flush() self._displayed = True def _update(self, msg): @@ -8912,6 +8914,7 @@ class JobStatusDisplay(object): out = self.out if not self._isatty: out.write(self._format_msg(msg) + self._term_codes['newline']) + self.out.flush() self._displayed = True return @@ -8943,6 +8946,7 @@ class JobStatusDisplay(object): if self._displayed: self.out.write(self._term_codes['newline']) + self.out.flush() self._displayed = False def __setattr__(self, name, value):