summaryrefslogtreecommitdiffstats
path: root/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 12:23:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 13:27:23 +0100
commit8a42d082315bd6ce091d006bf83476db257fa48b (patch)
tree00ef533bf28067bd063d311cd7ba3f74d655bb06 /lib/bb/data_smart.py
parent97db2a0792d605f27d434bc6a4acce52857deee1 (diff)
downloadbitbake-contrib-8a42d082315bd6ce091d006bf83476db257fa48b.tar.gz
data_smart: Fix variable reference issues
The change to use the expansion cache in VariableParse was incorrect as it was adding in references it shouldn't have been. This patch corrects the codepaths and ensures the references are correct. The cache version is bumped since the previous bug could have leave to invalid checksum calculations and a clean cache is therefore desireable. The impact of the bug was that sstate was not getting reused when it should and some tasks were also being rerun when they should not have been. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r--lib/bb/data_smart.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 79bf33108..71b67e458 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -96,10 +96,9 @@ class VariableParse:
raise Exception("variable %s references itself!" % self.varname)
if key in self.d.expand_cache:
varparse = self.d.expand_cache[key]
- self.references |= varparse.references
- self.execs |= varparse.execs
- return varparse.value
- var = self.d.getVar(key, True)
+ var = varparse.value
+ else:
+ var = self.d.getVar(key, True)
self.references.add(key)
if var is not None:
return var