[OE-core] [PATCH] classes/sstate.bbclass: checkhashes modify to take into account siginfo.
Aníbal Limón
anibal.limon at linux.intel.com
Tue Nov 24 21:55:05 UTC 2015
When sstate file exists but not siginfo one then sstate need to be marked as
non-available to avoid post FetchError's when trying to download siginfo.
For example,
WARNING: Failed to fetch URL
file://3b/sstate:gcc::5.2.0:r0::3:3bb8ffd234f7eb3709b5447f1f82d6d0_populate_lic.tgz.siginfo,
attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file
file://3b/sstate:gcc::5.2.0:r0::3:3bb8ffd234f7eb3709b5447f1f82d6d0_populate_lic.tgz.siginfo
anywhere. The paths that were searched were:
/home/alimon/repos/poky/build-x86/sstate-cache
/home/alimon/repos/poky/build-x86/sstate-cache
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
meta/classes/sstate.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d09e27a..b41860b 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -763,12 +763,15 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False):
(task, sstatefile) = arg
localdata2 = bb.data.createCopy(localdata)
- srcuri = "file://" + sstatefile
+ uris = ['file://{0}'.format(sstatefile),
+ 'file://{0}.siginfo'.format(sstatefile)]
+ srcuri = '\t'.join(uris)
+
localdata.setVar('SRC_URI', srcuri)
bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
try:
- fetcher = bb.fetch2.Fetch(srcuri.split(), localdata2,
+ fetcher = bb.fetch2.Fetch(uris, localdata2,
connection_cache=thread_worker.connection_cache)
fetcher.checkstatus()
bb.debug(2, "SState: Successful fetch test for %s" % srcuri)
--
2.1.4
More information about the Openembedded-core
mailing list