From: Richard Purdie Date: Fri, 13 Dec 2013 12:06:12 +0000 (+0000) Subject: data_smart: Fix hash corruption issue X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f4733257ad665aa7c7e7061c543379d5e4e3af2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Richard Purdie --- diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 833d9f17a4a..742c7fb64a4 100644 --- a/lib/bb/data_smart.py +++ b/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))