]> code.ossystems Code Review - openembedded-core.git/commitdiff
uninative: check .done file instead of tarball
authorStefan Agner <stefan.agner@toradex.com>
Fri, 11 Oct 2019 09:06:59 +0000 (11:06 +0200)
committerArmin Kuster <akuster808@gmail.com>
Sat, 26 Oct 2019 06:44:33 +0000 (23:44 -0700)
In case multiple builds share UNINATIVE_DLDIR's location, one build
might be in the process of downloading the tarball while another is
just checking whether the tarball exists. Check for the done file
instead and rely on the fetchers lockfile mechanism in case two
builds are running.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a1c95580549cb4f77601e62c7f026b19c752d853)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/uninative.bbclass

index 3326c0db3daa86e6d30d0004ab0df7ce4f5d7232..9f8645a36ac8bedf3aedb334d5e1cfe04303259c 100644 (file)
@@ -45,7 +45,7 @@ python uninative_event_fetchloader() {
         tarballdir = os.path.join(d.getVar("UNINATIVE_DLDIR"), chksum)
         tarballpath = os.path.join(tarballdir, tarball)
 
-        if not os.path.exists(tarballpath):
+        if not os.path.exists(tarballpath + ".done"):
             bb.utils.mkdirhier(tarballdir)
             if d.getVar("UNINATIVE_URL") == "unset":
                 bb.fatal("Uninative selected but not configured, please set UNINATIVE_URL")