diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-07 12:02:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-07 21:28:41 +0100 |
commit | fc32855512c5fe8db6d2d9816a79c1ee6cfe0031 (patch) | |
tree | e6c982d98819970855c0927dd5a93b7d9ff56288 | |
parent | 3d3f0cd09de4a226561454c88db72d91fdc9e7f1 (diff) | |
download | poky-fc32855512c5fe8db6d2d9816a79c1ee6cfe0031.tar.gz |
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.
(From OE-Core rev: 315cfebe77a46c868f307919d3540046a6cb8587)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-global/sstate.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass index cd77c58dbf..2c8e7b8cc2 100644 --- a/meta/classes-global/sstate.bbclass +++ b/meta/classes-global/sstate.bbclass | |||
@@ -784,6 +784,7 @@ def pstaging_fetch(sstatefetch, d): | |||
784 | uris += ['file://{0}.sig;downloadfilename={0}.sig'.format(sstatefetch)] | 784 | uris += ['file://{0}.sig;downloadfilename={0}.sig'.format(sstatefetch)] |
785 | 785 | ||
786 | for srcuri in uris: | 786 | for srcuri in uris: |
787 | localdata.delVar('SRC_URI') | ||
787 | localdata.setVar('SRC_URI', srcuri) | 788 | localdata.setVar('SRC_URI', srcuri) |
788 | try: | 789 | try: |
789 | fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False) | 790 | fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False) |