]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
scripts/devtool: sort the recipes that need to be upgraded together
authorRoss Burton <ross.burton@arm.com>
Thu, 27 Mar 2025 12:29:13 +0000 (12:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Mar 2025 11:19:06 +0000 (11:19 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py

index 9abf72eccf1d2da81d075e7da27fec3a3bb7dd3c..0dace1fb240b181a2d449b663238cfd97a21a0e2 100644 (file)
@@ -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("}")