Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/base/
Date: Tue, 31 Dec 2013 10:48:45
Message-Id: 1388486292.b85593f4c839d66511e525b04fa8bae4e7a1117c.dol-sen@gentoo
1 commit: b85593f4c839d66511e525b04fa8bae4e7a1117c
2 Author: W. Trevor King <wking <AT> tremily <DOT> us>
3 AuthorDate: Tue Dec 31 09:39:51 2013 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Tue Dec 31 10:38:12 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=b85593f4
7
8 modules/generic_target.py: Pass TERM through to the chroot environment.
9
10 Avoid:
11 Running stage1-chroot.sh in chroot /var/tmp/catalyst/tmp/default/...
12 tput: No value for xterm and no -T specified
13
14 ---
15 catalyst/base/targetbase.py | 7 +++++--
16 1 file changed, 5 insertions(+), 2 deletions(-)
17
18 diff --git a/catalyst/base/targetbase.py b/catalyst/base/targetbase.py
19 index b7a7428..5045a13 100644
20 --- a/catalyst/base/targetbase.py
21 +++ b/catalyst/base/targetbase.py
22 @@ -1,4 +1,5 @@
23
24 +import os
25
26 from catalyst.support import addl_arg_parse
27
28 @@ -9,5 +10,7 @@ class TargetBase(object):
29 def __init__(self, myspec, addlargs):
30 addl_arg_parse(myspec,addlargs,self.required_values,self.valid_values)
31 self.settings=myspec
32 - self.env={}
33 - self.env["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
34 + self.env = {
35 + 'PATH': '/bin:/sbin:/usr/bin:/usr/sbin',
36 + 'TERM': os.getenv('TERM', 'dumb'),
37 + }