aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-05 16:02:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 13:09:54 +0000
commit0a99563a4ea270594fd9a61da46f9387fb79dc66 (patch)
tree9f235c51bacd84bdd23451e01f0f57cb18cbb302 /lib/bb/utils.py
parentc9eb742637131e8dbd526d2ad9b458abea0a2d87 (diff)
downloadbitbake-0a99563a4ea270594fd9a61da46f9387fb79dc66.tar.gz
cooker/utils: Drop custom 'interactive' variables list and store environment in BB_ORIGENV instead
Maintining hardcoded lists of user environmental variables is hacky, replace these with the savedenv datastore. Allow access to that through the BB_ORIGENV variable. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/utils.py')
-rw-r--r--lib/bb/utils.py27
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 83159a646..484fb2dc7 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -458,27 +458,6 @@ def preserved_envvars_exported():
'USER',
]
-def preserved_envvars_exported_interactive():
- """Variables which are taken from the environment and placed in and exported
- from the metadata, for interactive tasks"""
- return [
- 'COLORTERM',
- 'DBUS_SESSION_BUS_ADDRESS',
- 'DESKTOP_SESSION',
- 'DESKTOP_STARTUP_ID',
- 'DISPLAY',
- 'GNOME_KEYRING_PID',
- 'GNOME_KEYRING_SOCKET',
- 'GPG_AGENT_INFO',
- 'GTK_RC_FILES',
- 'SESSION_MANAGER',
- 'KRB5CCNAME',
- 'SSH_AUTH_SOCK',
- 'XAUTHORITY',
- 'XDG_DATA_DIRS',
- 'XDG_SESSION_COOKIE',
- ]
-
def preserved_envvars():
"""Variables which are taken from the environment and placed in the metadata"""
v = [
@@ -487,7 +466,7 @@ def preserved_envvars():
'BB_ENV_WHITELIST',
'BB_ENV_EXTRAWHITE',
]
- return v + preserved_envvars_exported() + preserved_envvars_exported_interactive()
+ return v + preserved_envvars_exported()
def filter_environment(good_vars):
"""
@@ -509,10 +488,6 @@ def filter_environment(good_vars):
return removed_vars
-def create_interactive_env(d):
- for k in preserved_envvars_exported_interactive():
- os.setenv(k, d.getVar(k, True))
-
def approved_variables():
"""
Determine and return the list of whitelisted variables which are approved