summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/layerindexlib/__init__.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/bitbake/lib/layerindexlib/__init__.py b/bitbake/lib/layerindexlib/__init__.py
index ac03d89876..c3265ddaa1 100644
--- a/bitbake/lib/layerindexlib/__init__.py
+++ b/bitbake/lib/layerindexlib/__init__.py
@@ -178,9 +178,9 @@ class LayerIndex():
178 '''Load the layerindex. 178 '''Load the layerindex.
179 179
180 indexURI - An index to load. (Use multiple calls to load multiple indexes) 180 indexURI - An index to load. (Use multiple calls to load multiple indexes)
181 181
182 reload - If reload is True, then any previously loaded indexes will be forgotten. 182 reload - If reload is True, then any previously loaded indexes will be forgotten.
183 183
184 load - List of elements to load. Default loads all items. 184 load - List of elements to load. Default loads all items.
185 Note: plugs may ignore this. 185 Note: plugs may ignore this.
186 186
@@ -383,7 +383,14 @@ layerBranches set. If not, they are effectively blank.'''
383 383
384 # Get a list of dependencies and then recursively process them 384 # Get a list of dependencies and then recursively process them
385 for layerdependency in layerbranch.index.layerDependencies_layerBranchId[layerbranch.id]: 385 for layerdependency in layerbranch.index.layerDependencies_layerBranchId[layerbranch.id]:
386 deplayerbranch = layerdependency.dependency_layerBranch 386 try:
387 deplayerbranch = layerdependency.dependency_layerBranch
388 except AttributeError as e:
389 logger.error('LayerBranch does not exist for dependent layer {}:{}\n' \
390 ' Cannot continue successfully.\n' \
391 ' You might be able to resolve this by checking out the layer locally.\n' \
392 ' Consider reaching out the to the layer maintainers or the layerindex admins' \
393 .format(layerdependency.dependency.name, layerbranch.branch.name))
387 394
388 if ignores and deplayerbranch.layer.name in ignores: 395 if ignores and deplayerbranch.layer.name in ignores:
389 continue 396 continue
@@ -846,7 +853,7 @@ class LayerIndexObj():
846 continue 853 continue
847 854
848 for layerdependency in layerbranch.index.layerDependencies_layerBranchId[layerbranch.id]: 855 for layerdependency in layerbranch.index.layerDependencies_layerBranchId[layerbranch.id]:
849 deplayerbranch = layerdependency.dependency_layerBranch 856 deplayerbranch = layerdependency.dependency_layerBranch or None
850 857
851 if ignores and deplayerbranch.layer.name in ignores: 858 if ignores and deplayerbranch.layer.name in ignores:
852 continue 859 continue