summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-09 03:48:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-09 03:48:51 +0000
commit90fcc3a2b425ea9b47f5a666dd5fac127c4c8c85 (patch)
tree9c05d5d01624c0c68785b9e43e94df365200df06 /pym
parent751893b0272561eb9274110a474d5436a7d2bc76 (diff)
downloadportage-90fcc3a2b425ea9b47f5a666dd5fac127c4c8c85.tar.gz
portage-90fcc3a2b425ea9b47f5a666dd5fac127c4c8c85.tar.bz2
portage-90fcc3a2b425ea9b47f5a666dd5fac127c4c8c85.zip
Only execute $PROMPT_COMMAND when appropriate.
svn path=/main/trunk/; revision=6772
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/output.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index cd140f016..83ff3f1c2 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -194,7 +194,8 @@ def xtermTitleReset():
if prompt_command == "":
default_xterm_title = ""
elif prompt_command is not None:
- os.system(prompt_command)
+ if dotitles and "TERM" in os.environ and sys.stderr.isatty():
+ os.system(prompt_command)
return
else:
pwd = os.getenv('PWD','')