scripts/devtool: sort the recipes that need to be upgraded together
PATCH 1/1 scripts/devtool: sort the recipes that need to be upgraded together
Sort the list of recipes for a more visually pleasing display, and to make it easier to compare output from multiple runs.
Signed-off-by Ross Burton <[email protected]>
--- scripts/lib/devtool/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/upgrade.py +1 -1
@@ -670,7 +670,7 @@ def check_upgrade_status(args, config, basepath, workspace): currents = [r for r in recipegroup if r['status'] == 'MATCH'] if len(upgrades) > 1: print("These recipes need to be upgraded together {") - for r in upgrades: + for r in sorted(upgrades, key=lambda r:r['pn']): _print_status(r) if len(upgrades) > 1: print("}")
Signature · 1 line
2.43.0