aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-22 11:36:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-22 11:38:06 +0000
commit3b88562d87ac94725c1a683c859c2a6a3287d173 (patch)
tree4560df3f76064ce3431a47215dfe7833b4c5206b /lib/bb/data_smart.py
parent4a7fb394a2f148517c36cf36bfd8f2be707efb27 (diff)
downloadbitbake-3b88562d87ac94725c1a683c859c2a6a3287d173.tar.gz
data_smart: Avoid exceptions for non string data
File "scripts/lib/checklayer/__init__.py", line 49, in _get_layer_collections ldata.expandVarref('LAYERDIR') File "build/bitbake/lib/bb/data_smart.py", line 1007, in expandVarref if referrervalue and ref in referrervalue: TypeError: argument of type 'bool' is not iterable We inject True values as an internal sentinel to the datastore, fix this codepath to handle it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r--lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index e7047d79c..8d3825f39 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -1004,7 +1004,7 @@ class DataSmart(MutableMapping):
value = self.getVar(variable, False)
for key in keys:
referrervalue = self.getVar(key, False)
- if referrervalue and ref in referrervalue:
+ if referrervalue and isinstance(referrervalue, str) and ref in referrervalue:
self.setVar(key, referrervalue.replace(ref, value))
def localkeys(self):