summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
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/lib/bb/utils.py
parent6e1cc7ca104b78ebb34a15eb4a41e33c7186d2fd (diff)
downloadpoky-62c103ce0e154ee5bf6183987adc90fc6df154c6.tar.gz
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/lib/bb/utils.py')
-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):
403 for var in bb.data.keys(d): 403 for var in bb.data.keys(d):
404 export = bb.data.getVarFlag(var, "export", d) 404 export = bb.data.getVarFlag(var, "export", d)
405 if export: 405 if export:
406 os.environ[var] = bb.data.getVar(var, d, True) 406 os.environ[var] = bb.data.getVar(var, d, True) or ""
407 407
408def prunedir(topdir): 408def prunedir(topdir):
409 # Delete everything reachable from the directory named in 'topdir'. 409 # Delete everything reachable from the directory named in 'topdir'.