summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-05-22 17:08:26 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-24 23:56:03 +0100
commit57daea00de5676315c99c6791f6dfbd6957989d3 (patch)
tree5cbff80463dca2344a5a57d8b71ac419cee0d854 /scripts/lib
parentf67d3b51bb30bae6cd91fa9b026a5e2b97c4249b (diff)
downloadpoky-57daea00de5676315c99c6791f6dfbd6957989d3.tar.gz
checklayer: Skip layers without a collection
As in other places in the file, skip layers that don't define a collection when searching for a layer to resolve a dependency. Fixes KeyError exceptions when attempting to access the layer collections later (From OE-Core rev: 26090a2861ebe21224aaf89d7be0c0a89ca58e48) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/checklayer/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
index 5aeec2f00f..1138000275 100644
--- a/scripts/lib/checklayer/__init__.py
+++ b/scripts/lib/checklayer/__init__.py
@@ -143,6 +143,9 @@ def detect_layers(layer_directories, no_auto):
143 143
144def _find_layer_depends(depend, layers): 144def _find_layer_depends(depend, layers):
145 for layer in layers: 145 for layer in layers:
146 if 'collections' not in layer:
147 continue
148
146 for collection in layer['collections']: 149 for collection in layer['collections']:
147 if depend == collection: 150 if depend == collection:
148 return layer 151 return layer