aboutsummaryrefslogtreecommitdiffstats
path: root/bin/oe/data.py
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2004-03-28 22:16:48 +0000
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2004-03-28 22:16:48 +0000
commit63e99620936456ae01eaee8abf954fe207f74dd6 (patch)
tree6a8295e95a39645979fcc08b5c836682ffd22fac /bin/oe/data.py
parent3fdb63f18bd509771341150601d388a83bfcd2b2 (diff)
downloadbitbake-63e99620936456ae01eaee8abf954fe207f74dd6.tar.gz
support 'fakeroot' attribute for functions
Diffstat (limited to 'bin/oe/data.py')
-rw-r--r--bin/oe/data.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/oe/data.py b/bin/oe/data.py
index 5dc0060ad..48ec439ae 100644
--- a/bin/oe/data.py
+++ b/bin/oe/data.py
@@ -267,11 +267,14 @@ import os
def inheritFromOS(d = _data):
"""Inherit variables from the environment."""
+ # fakeroot needs to be able to set these
+ non_inherit_vars = [ "LD_LIBRARY_PATH", "LD_PRELOAD" ]
for s in os.environ.keys():
- try:
- setVar(s, os.environ[s], d)
- except TypeError:
- pass
+ if not s in non_inherit_vars:
+ try:
+ setVar(s, os.environ[s], d)
+ except TypeError:
+ pass
import sys, string