diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-24 04:02:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-24 04:02:13 +0000 |
commit | f4aca7c4a2c837f3c1c324583b0157ddf73f1d37 (patch) | |
tree | 9a0a050c3d0600f363019be7bbdf3c60d8dc0dce /pym | |
parent | 601d518d636319f367280a6ed008cd974a18f884 (diff) | |
download | portage-f4aca7c4a2c837f3c1c324583b0157ddf73f1d37.tar.gz portage-f4aca7c4a2c837f3c1c324583b0157ddf73f1d37.tar.bz2 portage-f4aca7c4a2c837f3c1c324583b0157ddf73f1d37.zip |
If the TERM environment variable is unset then just use internal default
term codes since the vt100 codes typically produce strange output. This
fixes strange output from catalyst stage1 builds. (trunk r15129)
svn path=/main/branches/2.1.7/; revision=15141
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/JobStatusDisplay.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/JobStatusDisplay.py b/pym/_emerge/JobStatusDisplay.py index 288e355f6..cfc0bfa91 100644 --- a/pym/_emerge/JobStatusDisplay.py +++ b/pym/_emerge/JobStatusDisplay.py @@ -87,7 +87,9 @@ class JobStatusDisplay(object): False otherwise. """ - term_type = os.environ.get("TERM", "vt100") + term_type = os.environ.get("TERM", "").strip() + if not term_type: + return False tigetstr = None try: |