summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-02-12 13:50:19 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-12 13:50:19 +0000
commit62c103ce0e154ee5bf6183987adc90fc6df154c6 (patch)
treedd49ead53979d00ca8adb081317de2ed445e72a6 /bitbake
parent6e1cc7ca104b78ebb34a15eb4a41e33c7186d2fd (diff)
downloadopenembedded-core-62c103ce0e154ee5bf6183987adc90fc6df154c6.tar.gz
openembedded-core-62c103ce0e154ee5bf6183987adc90fc6df154c6.tar.bz2
openembedded-core-62c103ce0e154ee5bf6183987adc90fc6df154c6.zip
bitbake: utils.py: Don't error if an exported environment variable is unset (i.e. None)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 5fc1463e67..3b7ea2e83c 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -403,7 +403,7 @@ def build_environment(d):
for var in bb.data.keys(d):
export = bb.data.getVarFlag(var, "export", d)
if export:
- os.environ[var] = bb.data.getVar(var, d, True)
+ os.environ[var] = bb.data.getVar(var, d, True) or ""
def prunedir(topdir):
# Delete everything reachable from the directory named in 'topdir'.