[bitbake-devel] [PATCH 14/16] data_smart: Fix data expansion cache issues
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Jul 8 14:59:08 UTC 2015
The expand cache can be cleared in the middle of getVar now
due to the use of operations like delVar. We therefore need
to check if variables are in the cache before accessing in
case it was cleared.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/data_smart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index b9c5d1e..b7ccab7 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -682,7 +682,7 @@ class DataSmart(MutableMapping):
filtered = filter(lambda v: v not in removes,
value.split())
value = " ".join(filtered)
- if expand:
+ if expand and var in self.expand_cache:
# We need to ensure the expand cache has the correct value
# flag == "_content" here
self.expand_cache[var].value = value
--
2.1.0
More information about the bitbake-devel
mailing list