summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-10-11 11:06:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-29 09:08:17 +0000
commitad9606f8777e2e02cd6137f4721524d35ea0745a (patch)
tree7d6352058f979523099ef6f01c2e0e84a0120c05 /meta/classes
parentc07d45d20c270b19745fbc1c6a1c1da1eb5b21c8 (diff)
downloadpoky-ad9606f8777e2e02cd6137f4721524d35ea0745a.tar.gz
uninative: check .done file instead of tarball
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. (From OE-Core rev: 956ae2c2a72914c7e9a1d59e5906c7fc75670a39) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/uninative.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 3326c0db3d..9f8645a36a 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -45,7 +45,7 @@ python uninative_event_fetchloader() {
45 tarballdir = os.path.join(d.getVar("UNINATIVE_DLDIR"), chksum) 45 tarballdir = os.path.join(d.getVar("UNINATIVE_DLDIR"), chksum)
46 tarballpath = os.path.join(tarballdir, tarball) 46 tarballpath = os.path.join(tarballdir, tarball)
47 47
48 if not os.path.exists(tarballpath): 48 if not os.path.exists(tarballpath + ".done"):
49 bb.utils.mkdirhier(tarballdir) 49 bb.utils.mkdirhier(tarballdir)
50 if d.getVar("UNINATIVE_URL") == "unset": 50 if d.getVar("UNINATIVE_URL") == "unset":
51 bb.fatal("Uninative selected but not configured, please set UNINATIVE_URL") 51 bb.fatal("Uninative selected but not configured, please set UNINATIVE_URL")