diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-21 08:24:22 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-21 08:24:22 +0000 |
commit | 9504d6638cf0a8e8b88b7964847b44edf3866870 (patch) | |
tree | dfa27f88b4e5036bd1555994ae2341344e73c857 /pym/_emerge | |
parent | 0570dc5af5ac3c54d7c27ccb76fab16a3b743564 (diff) | |
download | portage-9504d6638cf0a8e8b88b7964847b44edf3866870.tar.gz portage-9504d6638cf0a8e8b88b7964847b44edf3866870.tar.bz2 portage-9504d6638cf0a8e8b88b7964847b44edf3866870.zip |
In JobStatusDisplay, always flush the output stream after writing to it.
(trunk r12014)
svn path=/main/branches/2.1.6/; revision=12015
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): |