From bf71844ce5797f1fda2a7e293296fb8619cf686d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 13 Dec 2013 12:06:12 +0000 Subject: bitbake: data_smart: Fix hash corruption issue We were accidentally using references to sets in the contains functionality instead of creating a copy. This could cause data corruption and corruption of the resulting sstate checksums. This patch fixes this to make a copy of the set and resolved the corruption issue. (Bitbake rev: 8f4733257ad665aa7c7e7061c543379d5e4e3af2) Signed-off-by: Richard Purdie --- bitbake/lib/bb/data_smart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/data_smart.py') diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 833d9f1..742c7fb 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py @@ -123,7 +123,7 @@ class VariableParse: for k in parser.contains: if k not in self.contains: - self.contains[k] = parser.contains[k] + self.contains[k] = parser.contains[k].copy() else: self.contains[k].update(parser.contains[k]) value = utils.better_eval(codeobj, DataContext(self.d)) -- cgit v1.1