From patchwork Thu Aug 21 13:26:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eriksson Jonas X-Patchwork-Id: 381966 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 2AFF014009B for ; Thu, 21 Aug 2014 23:34:30 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 4ED403F8BF for ; Thu, 21 Aug 2014 15:34:28 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from eu3sys201aog102.obsmtp.com (eu3sys201aog102.obsmtp.com [207.126.148.90]) by hugin.dotsrc.org (Postfix) with ESMTPS id C4D093F8BF for ; Thu, 21 Aug 2014 15:34:26 +0200 (CEST) Received: from mail.maquet.com ([195.127.224.35]) (using TLSv1) by eu3sys201aob102.postini.com ([207.126.154.11]) with SMTP ID DSNKU/X1YWww1DwGI4fWc2S7zfEfriF4ejKh@postini.com; Thu, 21 Aug 2014 13:34:26 UTC Received: from STH006MS.servo.net (172.20.38.60) by divmailhost.stier0001 (172.19.26.2) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 21 Aug 2014 15:30:28 +0200 Received: from STH006MS.servo.net ([fe80::18af:4f74:2d6:2f0]) by STH006MS.servo.net ([fe80::18af:4f74:2d6:2f0%11]) with mapi id 14.01.0438.000; Thu, 21 Aug 2014 15:26:03 +0200 From: Eriksson Jonas To: "dev@oe-lite.org" Subject: [PATCH 1/2] Export OE_ENV_WHITELIST variables Thread-Topic: [PATCH 1/2] Export OE_ENV_WHITELIST variables Thread-Index: AQHPvUN0/MM5dXXBnku/NxeDIvgf7g== Date: Thu, 21 Aug 2014 13:26:03 +0000 Message-ID: <1408627554-6455-2-git-send-email-jonas.eriksson@maquet.com> References: <1408627554-6455-1-git-send-email-jonas.eriksson@maquet.com> In-Reply-To: <1408627554-6455-1-git-send-email-jonas.eriksson@maquet.com> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.20.38.10] MIME-Version: 1.0 Cc: Jonas Eriksson X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Jonas Eriksson When copying variables in OE_ENV_WHITELIST to the meta dict, make sure to flag them with 'export' to make sure that they end up in the environment of the child processes executed by do_*.run files, and by oelite.util.shcmd. Signed-off-by: Jonas Eriksson --- lib/oelite/meta/meta.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oelite/meta/meta.py b/lib/oelite/meta/meta.py index caec5f6..354f081 100644 --- a/lib/oelite/meta/meta.py +++ b/lib/oelite/meta/meta.py @@ -115,6 +115,7 @@ class MetaData(MutableMapping): if not var in self and var in os.environ: env_val = os.environ[var] self[var] = env_val + self.set_flag(var, "export", True) hasher.update("%s=%r\n"%(var, env_val)) self['__env_signature'] = hasher.hexdigest() self.set_flag('__env_signature', 'nohash', True)