summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2014-02-27 17:42:07 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-28 14:48:40 +0000
commit510560338d157630cd6c816adeb18d514a391883 (patch)
tree7469afdc553bcd5b299f4181ab7c748ad142db48 /bitbake/lib
parent59be48de343ac4d3eab0295df57c40b0c8ed097b (diff)
downloadpoky-510560338d157630cd6c816adeb18d514a391883.tar.gz
bitbake: build: filter out expanded empty strings for lockfiles flag
If we have something similar to: LOCKFILES = "${TMPDIR}/my.lock" LOCKFILES_qemuall = "" do_task[lockfiles] += "${LOCKFILES}" when expanded, lockfiles will be empty for qemu, resulting in File "/home/stefans/yocto/poky/bitbake/lib/bb/utils.py", line 630, in mkdirhier raise e OSError: [Errno 2] No such file or directory: '' This should filter out the empty expansions. (Bitbake rev: 7813e1bfd08cd48871f8c03cae2810265590105d) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 50a28dce7b..52e41493c1 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -173,7 +173,7 @@ def exec_func(func, d, dirs = None):
173 173
174 lockflag = flags.get('lockfiles') 174 lockflag = flags.get('lockfiles')
175 if lockflag: 175 if lockflag:
176 lockfiles = [d.expand(f) for f in lockflag.split()] 176 lockfiles = [f for f in d.expand(lockflag).split()]
177 else: 177 else:
178 lockfiles = None 178 lockfiles = None
179 179