Skip to contentSkip to conversation

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

PATCH New Ross Burton 1 participant 1 message Mar 27, 2025

lore
Share & tools
lore
#0 lore raw

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.

---
 scripts/lib/devtool/upgrade.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/upgrade.py +1 -1
index 9abf72eccf1..0dace1fb240 100644
@@ -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