From: Zac Medico Date: Thu, 24 Dec 2009 04:02:13 +0000 (-0000) Subject: If the TERM environment variable is unset then just use internal default X-Git-Tag: v2.1.7.16~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4aca7c4a2c837f3c1c324583b0157ddf73f1d37;p=portage.git 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 --- 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: