bitbake: Fix handling of empty variables in local config files

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-07-01 23:54:13 +01:00
parent 04b2a78837
commit 14df571486
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ class BBCooker:
for key in data.dict:
if key != "_data":
value = data.getVar(key, False)
if "${LAYERDIR}" in value:
if value and "${LAYERDIR}" in value:
data.setVar(key, value.replace("${LAYERDIR}", layer))
bb.data.delVar('LAYERDIR', data)