diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-12 13:50:19 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-12 13:50:19 +0000 |
commit | 62c103ce0e154ee5bf6183987adc90fc6df154c6 (patch) | |
tree | dd49ead53979d00ca8adb081317de2ed445e72a6 | |
parent | 6e1cc7ca104b78ebb34a15eb4a41e33c7186d2fd (diff) | |
download | openembedded-core-62c103ce0e154ee5bf6183987adc90fc6df154c6.tar.gz openembedded-core-62c103ce0e154ee5bf6183987adc90fc6df154c6.tar.bz2 openembedded-core-62c103ce0e154ee5bf6183987adc90fc6df154c6.tar.xz 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>
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 5fc1463e6..3b7ea2e83 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'. |