summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2021-07-22 14:46:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-10 11:14:11 +0100
commit33b3eaa04d871d25f5221bd5746f3662f320ebd7 (patch)
treeb7b755d1d3bfd195f1d5a750793bdbfa660bb2a1 /scripts
parent6f1a5a87830243ca085724ee1c1d631123dee0ec (diff)
downloadpoky-33b3eaa04d871d25f5221bd5746f3662f320ebd7.tar.gz
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: d6618f92fa3f589c1d155081e85905ffe5e39a6c) 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: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/checklayer/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
index 72d9df0a62..e69a10f452 100644
--- a/scripts/lib/checklayer/__init__.py
+++ b/scripts/lib/checklayer/__init__.py
@@ -146,7 +146,7 @@ def detect_layers(layer_directories, no_auto):
146 146
147 return layers 147 return layers
148 148
149def _find_layer_depends(depend, layers): 149def _find_layer(depend, layers):
150 for layer in layers: 150 for layer in layers:
151 if 'collections' not in layer: 151 if 'collections' not in layer:
152 continue 152 continue
@@ -166,7 +166,7 @@ def get_layer_dependencies(layer, layers, logger):
166 if depend == 'core': 166 if depend == 'core':
167 continue 167 continue
168 168
169 layer_depend = _find_layer_depends(depend, layers) 169 layer_depend = _find_layer(depend, layers)
170 if not layer_depend: 170 if not layer_depend:
171 logger.error('Layer %s depends on %s and isn\'t found.' % \ 171 logger.error('Layer %s depends on %s and isn\'t found.' % \
172 (layer['name'], depend)) 172 (layer['name'], depend))