diff options
| author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2021-07-22 14:46:43 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-06 09:59:15 +0100 |
| commit | eb7788581b519b1af474ef9e877657a68f5cc0fc (patch) | |
| tree | 9c63c77d0a7925c2816304c711a7c7e9ea887571 /scripts/lib/checklayer | |
| parent | c57f90e8bf9d27d7b5b7d3dc23a02e864ab334d1 (diff) | |
| download | poky-eb7788581b519b1af474ef9e877657a68f5cc0fc.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: 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>
Diffstat (limited to 'scripts/lib/checklayer')
| -rw-r--r-- | scripts/lib/checklayer/__init__.py | 4 |
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 | ||
| 149 | def _find_layer_depends(depend, layers): | 149 | def _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)) |
