Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15245 - main/branches/2.1.7/pym/portage
Date: Fri, 29 Jan 2010 18:47:40
Message-Id: E1NavsS-0006ZK-47@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-01-29 18:47:30 +0000 (Fri, 29 Jan 2010)
3 New Revision: 15245
4
5 Modified:
6 main/branches/2.1.7/pym/portage/output.py
7 Log:
8 Tweak TERM usage in xtermTitleReset() to match that in xtermTitle().
9 (trunk r15190)
10
11 Modified: main/branches/2.1.7/pym/portage/output.py
12 ===================================================================
13 --- main/branches/2.1.7/pym/portage/output.py 2010-01-29 18:47:09 UTC (rev 15244)
14 +++ main/branches/2.1.7/pym/portage/output.py 2010-01-29 18:47:30 UTC (rev 15245)
15 @@ -270,7 +270,10 @@
16 if prompt_command == "":
17 default_xterm_title = ""
18 elif prompt_command is not None:
19 - if dotitles and "TERM" in os.environ and sys.stderr.isatty():
20 + if dotitles and \
21 + 'TERM' in os.environ and \
22 + _legal_terms_re.match(os.environ['TERM']) is not None and \
23 + sys.stderr.isatty():
24 from portage.process import find_binary, spawn
25 shell = os.environ.get("SHELL")
26 if not shell or not os.access(shell, os.EX_OK):