From 62c103ce0e154ee5bf6183987adc90fc6df154c6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 12 Feb 2010 13:50:19 +0000 Subject: bitbake: utils.py: Don't error if an exported environment variable is unset (i.e. None) Signed-off-by: Richard Purdie --- bitbake/lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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'. -- cgit v1.2.3