mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 05:39:39 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f67d3b51bb
commit
57daea00de
@@ -143,6 +143,9 @@ def detect_layers(layer_directories, no_auto):
|
||||
|
||||
def _find_layer_depends(depend, layers):
|
||||
for layer in layers:
|
||||
if 'collections' not in layer:
|
||||
continue
|
||||
|
||||
for collection in layer['collections']:
|
||||
if depend == collection:
|
||||
return layer
|
||||
|
||||
Reference in New Issue
Block a user