mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
checklayer: rename _find_layer_depends
What this function does is really to find a layer, not a 'depends'. We are using this function to find a dependent layer, but the name is confusing. (From OE-Core rev: fa52d417ed578194274003c12e14cf93bdb8f7fb) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e9b7690ab30d0e7c07471034f6cb89ccc3168a11) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c57f90e8bf
commit
eb7788581b
@@ -146,7 +146,7 @@ def detect_layers(layer_directories, no_auto):
|
|||||||
|
|
||||||
return layers
|
return layers
|
||||||
|
|
||||||
def _find_layer_depends(depend, layers):
|
def _find_layer(depend, layers):
|
||||||
for layer in layers:
|
for layer in layers:
|
||||||
if 'collections' not in layer:
|
if 'collections' not in layer:
|
||||||
continue
|
continue
|
||||||
@@ -166,7 +166,7 @@ def get_layer_dependencies(layer, layers, logger):
|
|||||||
if depend == 'core':
|
if depend == 'core':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
layer_depend = _find_layer_depends(depend, layers)
|
layer_depend = _find_layer(depend, layers)
|
||||||
if not layer_depend:
|
if not layer_depend:
|
||||||
logger.error('Layer %s depends on %s and isn\'t found.' % \
|
logger.error('Layer %s depends on %s and isn\'t found.' % \
|
||||||
(layer['name'], depend))
|
(layer['name'], depend))
|
||||||
|
|||||||
Reference in New Issue
Block a user