diff options
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)) |
