diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-03-20 23:46:24 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-03-20 23:46:24 +0000 |
commit | a55c1f30f05202f6cbf04c8748b3c615b7ad7306 (patch) | |
tree | 478b43c4749b8f4b1b71d1dbb7df2e05262eb299 /pym | |
parent | 056933f6f907b53ea7558d1e9e073e7f8aae5edb (diff) | |
download | portage-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')
-rw-r--r-- | pym/portage/output.py | 7 |
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): |