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>
This commit is contained in:
Richard Purdie 2010-02-12 13:50:19 +00:00
parent 6e1cc7ca10
commit 62c103ce0e
1 changed files with 1 additions and 1 deletions

View File

@ -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'.