From 14df5714866dcb1b0b93fc9e30dffb4931127de9 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 1 Jul 2010 23:54:13 +0100 Subject: [PATCH] bitbake: Fix handling of empty variables in local config files Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7fbfb5beb5..488bc610d2 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -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)