summaryrefslogtreecommitdiffstats
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)
downloadpoky-14df5714866dcb1b0b93fc9e30dffb4931127de9.tar.gz
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 7fbfb5beb5..488bc610d2 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -550,7 +550,7 @@ class BBCooker:
550 for key in data.dict: 550 for key in data.dict:
551 if key != "_data": 551 if key != "_data":
552 value = data.getVar(key, False) 552 value = data.getVar(key, False)
553 if "${LAYERDIR}" in value: 553 if value and "${LAYERDIR}" in value:
554 data.setVar(key, value.replace("${LAYERDIR}", layer)) 554 data.setVar(key, value.replace("${LAYERDIR}", layer))
555 555
556 bb.data.delVar('LAYERDIR', data) 556 bb.data.delVar('LAYERDIR', data)