diff mbox

[1/2] Export OE_ENV_WHITELIST variables

Message ID 1408627554-6455-2-git-send-email-jonas.eriksson@maquet.com
State New
Delegated to: Esben Haabendal
Headers show

Commit Message

Eriksson Jonas Aug. 21, 2014, 1:26 p.m. UTC
From: Jonas Eriksson <zqad@acc.umu.se>

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 <jonas.eriksson@maquet.com>
---
 lib/oelite/meta/meta.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

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)