summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-19 03:25:29 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-19 03:25:29 +0000
commit3b1ce024df71ef31040be3e5973c55046e157680 (patch)
tree40394e1f061c60875aed3269158bcb86d053e8f5
parent23ab040fa6adb92b45ff35dc170adb8264124e48 (diff)
downloadportage-3b1ce024df71ef31040be3e5973c55046e157680.tar.gz
portage-3b1ce024df71ef31040be3e5973c55046e157680.tar.bz2
portage-3b1ce024df71ef31040be3e5973c55046e157680.zip
When JobStatusDisplay.displayMessage() is called while the status is currently
displayed, call display() after showing the given message. svn path=/main/trunk/; revision=11129
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 6ebdb6ff7..22ef75709 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -8473,12 +8473,18 @@ class JobStatusDisplay(object):
def displayMessage(self, msg):
+ was_displayed = self._displayed
+
if self._isatty and self._displayed:
self._erase()
self.out.write(self._format_msg(msg) + self._term_codes['newline'])
self._displayed = False
+ if was_displayed:
+ self._changed = True
+ self.display()
+
def reset(self):
self.maxval = 0
self.merges = 0