summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/upgrade.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-02-01 17:08:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-02 11:06:00 +0000
commit963ab2c49bd776793d4648e57188e3083ef4103a (patch)
treecb000f7f38e18f18325a120a00747e25f51fbca4 /scripts/lib/devtool/upgrade.py
parenta037aa88791ca062d86ac9447387523a7f2fdc1e (diff)
downloadpoky-963ab2c49bd776793d4648e57188e3083ef4103a.tar.gz
devtool: add --all option to check-upgrade-status
The default behaviour is to show just recipes needing upgrades, but for automated reports showing all recipes can be useful. (From OE-Core rev: 29e064ac6bd8d1ef74c280bf85bf8428c37ba014) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
-rw-r--r--scripts/lib/devtool/upgrade.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 42a4c0e4bf..75e765e019 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -606,7 +606,7 @@ def check_upgrade_status(args, config, basepath, workspace):
606 results = oe.recipeutils.get_recipe_upgrade_status(args.recipe) 606 results = oe.recipeutils.get_recipe_upgrade_status(args.recipe)
607 for result in results: 607 for result in results:
608 # pn, update_status, current, latest, maintainer, latest_commit, no_update_reason 608 # pn, update_status, current, latest, maintainer, latest_commit, no_update_reason
609 if result[1] != 'MATCH': 609 if args.all or result[1] != 'MATCH':
610 logger.info("{:25} {:15} {:15} {} {} {}".format( result[0], 610 logger.info("{:25} {:15} {:15} {} {} {}".format( result[0],
611 result[2], 611 result[2],
612 result[1] if result[1] != 'UPDATE' else (result[3] if not result[3].endswith("new-commits-available") else "new commits"), 612 result[1] if result[1] != 'UPDATE' else (result[3] if not result[3].endswith("new-commits-available") else "new commits"),
@@ -646,4 +646,5 @@ def register_commands(subparsers, context):
646 description="Prints a table of recipes together with versions currently provided by recipes, and latest upstream versions, when there is a later version available", 646 description="Prints a table of recipes together with versions currently provided by recipes, and latest upstream versions, when there is a later version available",
647 group='info') 647 group='info')
648 parser_check_upgrade_status.add_argument('recipe', help='Name of the recipe to report (omit to report upgrade info for all recipes)', nargs='*') 648 parser_check_upgrade_status.add_argument('recipe', help='Name of the recipe to report (omit to report upgrade info for all recipes)', nargs='*')
649 parser_check_upgrade_status.add_argument('--all', '-a', help='Show all recipes, not just recipes needing upgrade', action="store_true")
649 parser_check_upgrade_status.set_defaults(func=check_upgrade_status) 650 parser_check_upgrade_status.set_defaults(func=check_upgrade_status)