From: Richard Purdie Date: Wed, 7 Sep 2022 11:02:22 +0000 (+0100) Subject: sstate: Fix sstate file mirroring checksum issue X-Git-Tag: 2022-10~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=315cfebe77a46c868f307919d3540046a6cb8587;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git sstate: Fix sstate file mirroring checksum issue After a recent fix in bitbake, the checksums may be checked for local file fetches at an earlier code point. The underlying recipe checksums won't match sstate values so ensure these aren't set via SRC_URI flags when reconfiguring the fetch for sstate. Signed-off-by: Richard Purdie --- diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass index cd77c58dbf8..2c8e7b8cc23 100644 --- a/meta/classes-global/sstate.bbclass +++ b/meta/classes-global/sstate.bbclass @@ -784,6 +784,7 @@ def pstaging_fetch(sstatefetch, d): uris += ['file://{0}.sig;downloadfilename={0}.sig'.format(sstatefetch)] for srcuri in uris: + localdata.delVar('SRC_URI') localdata.setVar('SRC_URI', srcuri) try: fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)