mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
update.py: print failed layers summary in the end
This makes it easy to see which layers failed. For example: ERROR: Failed layers on branch master: openembedded-core meta-python Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
f7e63f1814
commit
51047ec58c
|
@ -319,6 +319,7 @@ def main():
|
||||||
# unreliable due to leaking memory (we're using bitbake internals in a manner in which
|
# unreliable due to leaking memory (we're using bitbake internals in a manner in which
|
||||||
# they never get used during normal operation).
|
# they never get used during normal operation).
|
||||||
last_rev = {}
|
last_rev = {}
|
||||||
|
failed_layers = {}
|
||||||
for branch in branches:
|
for branch in branches:
|
||||||
# If layer_A depends(or recommends) on layer_B, add layer_B before layer_A
|
# If layer_A depends(or recommends) on layer_B, add layer_B before layer_A
|
||||||
deps_dict_all = {}
|
deps_dict_all = {}
|
||||||
|
@ -384,9 +385,12 @@ def main():
|
||||||
# If nothing changed after a run then some dependencies couldn't be resolved
|
# If nothing changed after a run then some dependencies couldn't be resolved
|
||||||
if operator.eq(deps_dict_all_copy, deps_dict_all):
|
if operator.eq(deps_dict_all_copy, deps_dict_all):
|
||||||
logger.warning("Cannot find required collections on branch %s:" % branch)
|
logger.warning("Cannot find required collections on branch %s:" % branch)
|
||||||
|
layer_names = []
|
||||||
for layer, value in deps_dict_all.items():
|
for layer, value in deps_dict_all.items():
|
||||||
logger.error('%s: %s' % (layer.name, value['requires']))
|
logger.error('%s: %s' % (layer.name, value['requires']))
|
||||||
|
layer_names.append(layer.name)
|
||||||
logger.warning("Known collections on branch %s: %s" % (branch, collections))
|
logger.warning("Known collections on branch %s: %s" % (branch, collections))
|
||||||
|
failed_layers[branch] = layer_names
|
||||||
break
|
break
|
||||||
|
|
||||||
for layer in layerquery_sorted:
|
for layer in layerquery_sorted:
|
||||||
|
@ -427,6 +431,11 @@ def main():
|
||||||
# Interrupted by user, break out of loop
|
# Interrupted by user, break out of loop
|
||||||
logger.info('Update interrupted, exiting')
|
logger.info('Update interrupted, exiting')
|
||||||
sys.exit(254)
|
sys.exit(254)
|
||||||
|
if failed_layers:
|
||||||
|
print()
|
||||||
|
for branch, err_msg_list in failed_layers.items():
|
||||||
|
logger.error("Failed layers on branch %s: %s" % (branch, " ".join(err_msg_list)))
|
||||||
|
print()
|
||||||
finally:
|
finally:
|
||||||
utils.unlock_file(lockfile)
|
utils.unlock_file(lockfile)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user