summaryrefslogtreecommitdiffstats
path: root/pym/portage/output.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-10 19:07:58 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-10 19:07:58 +0000
commit0964d05f4a513c07a3ee84b742ac486c86700056 (patch)
tree514ed0ae768bdb3925c16f100f74a202ee3a138c /pym/portage/output.py
parente25182005600e3e5d0591c1d3e2ccc232417419f (diff)
downloadportage-0964d05f4a513c07a3ee84b742ac486c86700056.tar.gz
portage-0964d05f4a513c07a3ee84b742ac486c86700056.tar.bz2
portage-0964d05f4a513c07a3ee84b742ac486c86700056.zip
Use ebegin/eend to indicate when waiting for a lock and when it's acquired.
Thanks to Petteri Räty <belegeuse@g.o> for the suggestion. svn path=/main/trunk/; revision=12415
Diffstat (limited to 'pym/portage/output.py')
-rw-r--r--pym/portage/output.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index defcb478b..f833e8f5d 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -461,10 +461,11 @@ class EOutput(object):
self.ewarn(msg[0])
if self.__last_e_cmd != "ebegin":
self.__last_e_len = 0
- out = sys.stdout
- out.write("%*s%s\n" % \
- ((self.term_columns - self.__last_e_len - 6), "", status_brackets))
- out.flush()
+ if not self.quiet:
+ out = sys.stdout
+ out.write("%*s%s\n" % ((self.term_columns - self.__last_e_len - 6),
+ "", status_brackets))
+ out.flush()
def ebegin(self, msg):
"""