]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/externalsrc: handle tasks with existing lockfiles
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 16 Jun 2015 13:49:00 +0000 (14:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jun 2015 08:12:01 +0000 (09:12 +0100)
We need to ensure we add a leading space to the value we are prepending
here in case lockfiles already has a value.

Fixes [YOCTO #7813].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/externalsrc.bbclass

index 75bdb7a14d4a3edb2a0d7a67c9dd9aa42fe5c01d..8f7f479293ed09836deae18e04f9bc4c921eed7a 100644 (file)
@@ -55,7 +55,7 @@ python () {
                 bb.build.deltask(task, d)
             else:
                 # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time
-                d.appendVarFlag(task, "lockfiles", "${S}/singletask.lock")
+                d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock")
 
             # We do not want our source to be wiped out, ever (kernel.bbclass does this for do_clean)
             cleandirs = d.getVarFlag(task, 'cleandirs', False)