summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-21 22:54:54 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-21 22:54:54 +0000
commitc16af020030e5d6ee3b99ee41564baf105d75c4f (patch)
tree098d7e62271011ed744ab46b0eb21fdc814ff31a
parenta360516e66421bc230f6dd8ae47f375664aa662a (diff)
downloadportage-c16af020030e5d6ee3b99ee41564baf105d75c4f.tar.gz
portage-c16af020030e5d6ee3b99ee41564baf105d75c4f.tar.bz2
portage-c16af020030e5d6ee3b99ee41564baf105d75c4f.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. svn path=/main/trunk/; revision=15129
-rw-r--r--pym/_emerge/JobStatusDisplay.py4
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: