[PATCH] sstate: Fix sstate file mirroring checksum issue

Richard Purdie

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 <richard.purdie@...>
meta/classes-global/sstate.bbclass | 1 +
1 file changed, 1 insertion(+)

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)
fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)

Join {openembedded-core@lists.openembedded.org to automatically receive all group messages.