summaryrefslogtreecommitdiffstats
path: root/pym/portage/output.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-20 23:46:24 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-20 23:46:24 +0000
commita55c1f30f05202f6cbf04c8748b3c615b7ad7306 (patch)
tree478b43c4749b8f4b1b71d1dbb7df2e05262eb299 /pym/portage/output.py
parent056933f6f907b53ea7558d1e9e073e7f8aae5edb (diff)
downloadportage-a55c1f30f05202f6cbf04c8748b3c615b7ad7306.tar.gz
portage-a55c1f30f05202f6cbf04c8748b3c615b7ad7306.tar.bz2
portage-a55c1f30f05202f6cbf04c8748b3c615b7ad7306.zip
Bug #309149 - Unify look of eend used in bash & python code, additionally
fixing few inconsistences in bash code. Thanks to Michał Górny <gentoo@mgorny.alt.pl> for this patch. svn path=/main/trunk/; revision=15839
Diffstat (limited to 'pym/portage/output.py')
-rw-r--r--pym/portage/output.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index 971400d76..4d8eb94fa 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -487,9 +487,6 @@ class EOutput(object):
lines, columns = get_term_size()
if columns <= 0:
columns = 80
- # Adjust columns so that eend works properly on a standard BSD console.
- if os.environ.get("TERM") in ("cons25", "dumb"):
- columns = columns - 1
self.term_columns = columns
sys.stdout.flush()
sys.stderr.flush()
@@ -518,7 +515,7 @@ class EOutput(object):
if not self.quiet:
out = sys.stdout
self._write(out,
- "%*s%s\n" % ((self.term_columns - self.__last_e_len - 6),
+ "%*s%s\n" % ((self.term_columns - self.__last_e_len - 7),
"", status_brackets))
def ebegin(self, msg):
@@ -532,7 +529,7 @@ class EOutput(object):
msg += " ..."
if not self.quiet:
self.einfon(msg)
- self.__last_e_len = len(msg) + 4
+ self.__last_e_len = len(msg) + 3
self.__last_e_cmd = "ebegin"
def eend(self, errno, *msg):