summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2022-03-06 21:08:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-07 22:43:48 +0000
commit1fa763b2022822a76fde541724e83e1977833d03 (patch)
tree562d846df85849f49b0cc069afdc3ccad55e094e /meta/classes/sstate.bbclass
parent5d5c999ec0a40e3fa14041c35035c8cd4a1da01d (diff)
downloadopenembedded-core-1fa763b2022822a76fde541724e83e1977833d03.tar.gz
sstate: inside the threadedpool don't write to the shared localdata
When inside the threadedpool we make a copy of the localdata to avoid some race condition, so we need to use this new localdata2 and stop write the shared localdata. Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index dc9a2c085b..7aca415159 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
localdata2 = bb.data.createCopy(localdata)
srcuri = "file://" + sstatefile
- localdata.setVar('SRC_URI', srcuri)
+ localdata2.setVar('SRC_URI', srcuri)
bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
import traceback