diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-01 23:54:13 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:37 +0100 |
commit | 14df5714866dcb1b0b93fc9e30dffb4931127de9 (patch) | |
tree | c78fcbe5e2be3ee0a1e5eafedc9acdafcb5deea0 | |
parent | 04b2a788378fd45e7312a1dc393daf1993d92ab2 (diff) | |
download | openembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.tar.gz openembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.tar.bz2 openembedded-core-14df5714866dcb1b0b93fc9e30dffb4931127de9.zip |
bitbake: Fix handling of empty variables in local config files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
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: 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) |