* [PATCH] utils: Fix BB_PRESERVE_ENV
@ 2013-09-11 10:01 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-09-11 10:01 UTC (permalink / raw)
To: bitbake-devel
BB_PRESERVE_ENV wasn't working since data.inheritFromOS wasn't getting a
correct list of keys to import into the data store. This fixes
things so it does add all environment variables into the data store
when BB_PRESERVE_ENV is used.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 7686602..c96f460 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -532,6 +532,8 @@ def approved_variables():
Determine and return the list of whitelisted variables which are approved
to remain in the envrionment.
"""
+ if 'BB_PRESERVE_ENV' in os.environ:
+ return os.environ.keys()
approved = []
if 'BB_ENV_WHITELIST' in os.environ:
approved = os.environ['BB_ENV_WHITELIST'].split()
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-11 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 10:01 [PATCH] utils: Fix BB_PRESERVE_ENV Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.