summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-01 23:54:13 +0100
committerChris Larson <clarson@kergoth.com>2010-07-26 18:19:26 -0700
commit0964af191fcefab2f4f549caea977ad68055d8eb (patch)
tree68d2abe20bd0857cb00df98c99642aae5d939204
parented50160a159c5a6b9f69755a155507179687306c (diff)
downloadbitbake-0964af191fcefab2f4f549caea977ad68055d8eb.tar.gz
Fix handling of empty variables in local config files
(From Poky rev: dbd9308) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index bc86632c0..0b5744803 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -559,7 +559,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)