From 510560338d157630cd6c816adeb18d514a391883 Mon Sep 17 00:00:00 2001 From: Stefan Stanacar Date: Thu, 27 Feb 2014 17:42:07 +0200 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/build.py') 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): 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 -- cgit v1.2.3-54-g00ecf