From: Zac Medico Date: Fri, 21 Nov 2008 08:24:22 +0000 (-0000) Subject: In JobStatusDisplay, always flush the output stream after writing to it. X-Git-Tag: v2.1.6_rc1~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9504d6638cf0a8e8b88b7964847b44edf3866870;p=portage.git In JobStatusDisplay, always flush the output stream after writing to it. (trunk r12014) svn path=/main/branches/2.1.6/; revision=12015 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index acbabf317..689dffa2f 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8885,10 +8885,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): @@ -8896,6 +8898,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 @@ -8927,6 +8930,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):