diff options
-rw-r--r-- | meta/lib/oe/recipeutils.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/distrodata.py | 4 | ||||
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 2d69a33113..f9d7dfe253 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
@@ -1112,7 +1112,7 @@ def _get_recipe_upgrade_status(data): | |||
1112 | maintainer = data.getVar('RECIPE_MAINTAINER') | 1112 | maintainer = data.getVar('RECIPE_MAINTAINER') |
1113 | no_upgrade_reason = data.getVar('RECIPE_NO_UPDATE_REASON') | 1113 | no_upgrade_reason = data.getVar('RECIPE_NO_UPDATE_REASON') |
1114 | 1114 | ||
1115 | return (pn, status, cur_ver, next_ver, maintainer, revision, no_upgrade_reason) | 1115 | return {'pn':pn, 'status':status, 'cur_ver':cur_ver, 'next_ver':next_ver, 'maintainer':maintainer, 'revision':revision, 'no_upgrade_reason':no_upgrade_reason} |
1116 | 1116 | ||
1117 | def get_recipe_upgrade_status(recipes=None): | 1117 | def get_recipe_upgrade_status(recipes=None): |
1118 | pkgs_list = [] | 1118 | pkgs_list = [] |
diff --git a/meta/lib/oeqa/selftest/cases/distrodata.py b/meta/lib/oeqa/selftest/cases/distrodata.py index ad952c004b..b60913dbca 100644 --- a/meta/lib/oeqa/selftest/cases/distrodata.py +++ b/meta/lib/oeqa/selftest/cases/distrodata.py | |||
@@ -22,8 +22,8 @@ class Distrodata(OESelftestTestCase): | |||
22 | 22 | ||
23 | pkgs = oe.recipeutils.get_recipe_upgrade_status() | 23 | pkgs = oe.recipeutils.get_recipe_upgrade_status() |
24 | 24 | ||
25 | regressed_failures = [pkg[0] for pkg in pkgs if pkg[1] == 'UNKNOWN_BROKEN'] | 25 | regressed_failures = [pkg['pn'] for pkg in pkgs if pkg['status'] == 'UNKNOWN_BROKEN'] |
26 | regressed_successes = [pkg[0] for pkg in pkgs if pkg[1] == 'KNOWN_BROKEN'] | 26 | regressed_successes = [pkg['pn'] for pkg in pkgs if pkg['status'] == 'KNOWN_BROKEN'] |
27 | msg = "" | 27 | msg = "" |
28 | if len(regressed_failures) > 0: | 28 | if len(regressed_failures) > 0: |
29 | msg = msg + """ | 29 | msg = msg + """ |
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index 8e13833b51..10b4f8b5ee 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py | |||
@@ -659,13 +659,13 @@ def check_upgrade_status(args, config, basepath, workspace): | |||
659 | results = oe.recipeutils.get_recipe_upgrade_status(args.recipe) | 659 | results = oe.recipeutils.get_recipe_upgrade_status(args.recipe) |
660 | for result in results: | 660 | for result in results: |
661 | # pn, update_status, current, latest, maintainer, latest_commit, no_update_reason | 661 | # pn, update_status, current, latest, maintainer, latest_commit, no_update_reason |
662 | if args.all or result[1] != 'MATCH': | 662 | if args.all or result['status'] != 'MATCH': |
663 | print("{:25} {:15} {:15} {} {} {}".format( result[0], | 663 | print("{:25} {:15} {:15} {} {} {}".format( result['pn'], |
664 | result[2], | 664 | result['cur_ver'], |
665 | result[1] if result[1] != 'UPDATE' else (result[3] if not result[3].endswith("new-commits-available") else "new commits"), | 665 | result['status'] if result['status'] != 'UPDATE' else (result['next_ver'] if not result['next_ver'].endswith("new-commits-available") else "new commits"), |
666 | result[4], | 666 | result['maintainer'], |
667 | result[5] if result[5] != 'N/A' else "", | 667 | result['revision'] if result['revision'] != 'N/A' else "", |
668 | "cannot be updated due to: %s" %(result[6]) if result[6] else "")) | 668 | "cannot be updated due to: %s" %(result['no_upgrade_reason']) if result['no_upgrade_reason'] else "")) |
669 | 669 | ||
670 | def register_commands(subparsers, context): | 670 | def register_commands(subparsers, context): |
671 | """Register devtool subcommands from this plugin""" | 671 | """Register devtool subcommands from this plugin""" |