diff mbox series

scripts/devtool: sort the recipes that need to be upgraded together

Message ID 20250327122913.2419208-1-ross.burton@arm.com
State Accepted, archived
Commit 561e1996d655147199dc1601b5cba0512042de6b
Headers show
Series scripts/devtool: sort the recipes that need to be upgraded together | expand

Commit Message

Ross Burton March 27, 2025, 12:29 p.m. UTC
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 <ross.burton@arm.com>
---
 scripts/lib/devtool/upgrade.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 9abf72eccf1..0dace1fb240 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -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("}")