summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-01 23:54:13 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:37 +0100
commit14df5714866dcb1b0b93fc9e30dffb4931127de9 (patch)
treec78fcbe5e2be3ee0a1e5eafedc9acdafcb5deea0 /bitbake
parent04b2a788378fd45e7312a1dc393daf1993d92ab2 (diff)
downloadopenembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.tar.gz
openembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.tar.bz2
openembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.tar.xz
openembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.zip
bitbake: Fix handling of empty variables in local config files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 7fbfb5beb..488bc610d 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)