Fix validation when moving to unmaintained

Deliverables with model="untagged" or stable-branch-type="tagless"
don't have any series that needs to start with .0, so skip the
corresponding validation for them.

Change-Id: I8bd946eabf5f85dc003acca6188427a16396c8a6
This commit is contained in:
Dr. Jens Harbott
2024-01-25 09:48:32 +01:00
parent 017b41c3ea
commit b41258af25
+8
View File
@@ -264,6 +264,14 @@ def validate_series_open(deliv, context):
def validate_series_first(deliv, context):
"The first release in a series needs to end with '.0'."
if deliv.model == 'untagged':
print('this rule does not apply to untagged deliverables')
return
if deliv.stable_branch_type == 'tagless':
print('this rule does not apply to tagless deliverables')
return
if deliv.type == 'tempest-plugin':
print('this rule does not apply to branchless tempest plugins')
return