summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-21 08:23:33 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-21 08:23:33 +0000
commit5d4e2203a2ab025f42baa3b9d59f1047092b1fbb (patch)
treee26a71d8492ac88f6bc076ecf77d5d62c0df1d38
parent2bcf89453a514a0fb4f69fe3af17b7e25b54fcf1 (diff)
downloadportage-5d4e2203a2ab025f42baa3b9d59f1047092b1fbb.tar.gz
portage-5d4e2203a2ab025f42baa3b9d59f1047092b1fbb.tar.bz2
portage-5d4e2203a2ab025f42baa3b9d59f1047092b1fbb.zip
In JobStatusDisplay, always flush the output stream after writing to it.
svn path=/main/trunk/; revision=12014
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 4 insertions, 0 deletions
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):