From 47a020e4243295da0ee8f44ba4565d21cd8b30d6 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 16 Dec 2016 10:57:25 -0500 Subject: [PATCH] add --missing-rc flag to list-deliverables Make an easy way to find projects that have not tagged a release candidate for a series. Change-Id: I467e14a69901ec5292576a88365804b676903a79 Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_deliverables.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openstack_releases/cmds/list_deliverables.py b/openstack_releases/cmds/list_deliverables.py index 623a3c2db9..04e5d1c4a2 100644 --- a/openstack_releases/cmds/list_deliverables.py +++ b/openstack_releases/cmds/list_deliverables.py @@ -80,6 +80,12 @@ def main(): 'the most current release; for example 2 would look for .0b2 ' 'in the version number (implies --model cycle-with-milestones)'), ) + grp.add_argument( + '--missing-rc', + action='store_true', + help=('deliverables that do not have a release candidate, yet ' + '(implies --model cycle-with-milestones)'), + ) args = parser.parse_args() # Deal with the inconsistency of the name for the independent @@ -91,6 +97,9 @@ def main(): if args.missing_milestone: model = 'cycle-with-milestones' version_ending = '.0b{}'.format(args.missing_milestone) + elif args.missing_rc: + model = 'cycle-with-milestones' + version_ending = None else: model = args.model version_ending = None @@ -115,6 +124,8 @@ def main(): continue if version_ending and deliv.latest_release and deliv.latest_release.endswith(version_ending): continue + if args.missing_rc and deliv.latest_release and 'rc' in deliv.latest_release: + continue if args.verbose: print('{:30} {:15} {}'.format(deliv.name, deliv.latest_release, deliv.team)) else: