Skip to contentSkip to conversation

toaster: Filtering out erroneously empty bblayer names.

PATCH New ilies bogdan 1 participant 1 message May 27, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 toaster: Filtering out erroneously empty bblayer names.

Within toaster.bbclass on toaster_layerinfo_dumpdata the str.strip is only applied to the value that comes from BBLAYERS. There are chances (also the case that I ran into by mistake) when there is an additional \t which will lead to trying to process a layer with name "\t". IMO this can be accepted and I have added an extra strip on layer name before filtering by empty layer name.

---
 meta/classes/toaster.bbclass | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/toaster.bbclass +0 -0
index 9518ddf7a4e..066cebc066e 100644
@@ -84,7 +84,8 @@ python toaster_layerinfo_dumpdata() {


     llayerinfo = {}

-    for layer in { l for l in bblayers.strip().split(" ") if len(l) }:
+    bblayers_list = [l for l in map(str.strip, bblayers.strip().split(" ")) if len(l)] +    for layer in bblayers_list:
         llayerinfo[layer] = _get_layer_dict(layer)

Signature · 1 line
2.25.1