From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 81DC2138247 for ; Tue, 31 Dec 2013 10:48:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1472CE09E0; Tue, 31 Dec 2013 10:48:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EB5EE0AAD for ; Tue, 31 Dec 2013 10:48:44 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6730833F7C6 for ; Tue, 31 Dec 2013 10:48:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CC3E2E5538 for ; Tue, 31 Dec 2013 10:48:40 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1388486292.b85593f4c839d66511e525b04fa8bae4e7a1117c.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/targetbase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: b85593f4c839d66511e525b04fa8bae4e7a1117c X-VCS-Branch: 3.0 Date: Tue, 31 Dec 2013 10:48:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 170fa028-9d58-49ed-9f70-09070dd05711 X-Archives-Hash: 2d2c95406536c5f20b4498da919381f8 commit: b85593f4c839d66511e525b04fa8bae4e7a1117c Author: W. Trevor King tremily us> AuthorDate: Tue Dec 31 09:39:51 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Tue Dec 31 10:38:12 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=b85593f4 modules/generic_target.py: Pass TERM through to the chroot environment. Avoid: Running stage1-chroot.sh in chroot /var/tmp/catalyst/tmp/default/... tput: No value for xterm and no -T specified --- catalyst/base/targetbase.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/catalyst/base/targetbase.py b/catalyst/base/targetbase.py index b7a7428..5045a13 100644 --- a/catalyst/base/targetbase.py +++ b/catalyst/base/targetbase.py @@ -1,4 +1,5 @@ +import os from catalyst.support import addl_arg_parse @@ -9,5 +10,7 @@ class TargetBase(object): def __init__(self, myspec, addlargs): addl_arg_parse(myspec,addlargs,self.required_values,self.valid_values) self.settings=myspec - self.env={} - self.env["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" + self.env = { + 'PATH': '/bin:/sbin:/usr/bin:/usr/sbin', + 'TERM': os.getenv('TERM', 'dumb'), + }