From cf64aa11ddde2bde66729ccffeaf78a183b45c56 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 6 Mar 2017 10:33:29 -0500 Subject: [PATCH] add --missing-final argument to list-deliverables Provide a way to identify the projects that have pre-releases but no final releases. Change-Id: I85d53b27adb21aefa3be13028755e8df6fd4e0b8 Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_deliverables.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/openstack_releases/cmds/list_deliverables.py b/openstack_releases/cmds/list_deliverables.py index 5b1fe5ae62..e8724d71a7 100644 --- a/openstack_releases/cmds/list_deliverables.py +++ b/openstack_releases/cmds/list_deliverables.py @@ -99,6 +99,11 @@ def main(): help=('deliverables that do not have a release candidate, yet ' '(implies --model cycle-with-milestones)'), ) + grp.add_argument( + '--missing-final', + action='store_true', + help='deliverables that have pre-releases but no final releases, yet', + ) args = parser.parse_args() # Deal with the inconsistency of the name for the independent @@ -113,6 +118,9 @@ def main(): elif args.missing_rc: model = 'cycle-with-milestones' version_ending = None + elif args.missing_final: + model = args.model + version_ending = None else: model = args.model version_ending = None @@ -155,6 +163,11 @@ def main(): for t in args.tag: if t not in tags: continue + if args.missing_final and deliv.latest_release: + if not ('rc' in deliv.latest_release or + 'a' in deliv.latest_release or + 'b' in deliv.latest_release): + continue if args.verbose: print(verbose_template.format( name=deliv.name,