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 <doug@doughellmann.com>
This commit is contained in:
@@ -80,6 +80,12 @@ def main():
|
|||||||
'the most current release; for example 2 would look for .0b2 '
|
'the most current release; for example 2 would look for .0b2 '
|
||||||
'in the version number (implies --model cycle-with-milestones)'),
|
'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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Deal with the inconsistency of the name for the independent
|
# Deal with the inconsistency of the name for the independent
|
||||||
@@ -91,6 +97,9 @@ def main():
|
|||||||
if args.missing_milestone:
|
if args.missing_milestone:
|
||||||
model = 'cycle-with-milestones'
|
model = 'cycle-with-milestones'
|
||||||
version_ending = '.0b{}'.format(args.missing_milestone)
|
version_ending = '.0b{}'.format(args.missing_milestone)
|
||||||
|
elif args.missing_rc:
|
||||||
|
model = 'cycle-with-milestones'
|
||||||
|
version_ending = None
|
||||||
else:
|
else:
|
||||||
model = args.model
|
model = args.model
|
||||||
version_ending = None
|
version_ending = None
|
||||||
@@ -115,6 +124,8 @@ def main():
|
|||||||
continue
|
continue
|
||||||
if version_ending and deliv.latest_release and deliv.latest_release.endswith(version_ending):
|
if version_ending and deliv.latest_release and deliv.latest_release.endswith(version_ending):
|
||||||
continue
|
continue
|
||||||
|
if args.missing_rc and deliv.latest_release and 'rc' in deliv.latest_release:
|
||||||
|
continue
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
print('{:30} {:15} {}'.format(deliv.name, deliv.latest_release, deliv.team))
|
print('{:30} {:15} {}'.format(deliv.name, deliv.latest_release, deliv.team))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user