diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2019-10-11 11:06:59 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-19 23:18:33 +0100 |
commit | b236454b8398ebb9dbd535158d608c8d238fe070 (patch) | |
tree | bf20571d32c1b23e0921e3857cd061b7c333aa6e /meta/classes | |
parent | 80739381b1998320e0a44a3d5bfdf08ac73b3a05 (diff) | |
download | poky-b236454b8398ebb9dbd535158d608c8d238fe070.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: a1c95580549cb4f77601e62c7f026b19c752d853)
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/uninative.bbclass | 2 |
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") |