aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
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:46:16 +0000
commit7813e1bfd08cd48871f8c03cae2810265590105d (patch)
tree18a7469b2a980b2e80aff0c4f5e873eb594870c2 /lib/bb/build.py
parent4a5009036e9cb38f6e0260a88278948931073bc6 (diff)
downloadbitbake-7813e1bfd08cd48871f8c03cae2810265590105d.tar.gz
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. Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 50a28dce7..52e41493c 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -173,7 +173,7 @@ def exec_func(func, d, dirs = None):
lockflag = flags.get('lockfiles')
if lockflag:
- lockfiles = [d.expand(f) for f in lockflag.split()]
+ lockfiles = [f for f in d.expand(lockflag).split()]
else:
lockfiles = None