only validate release-type for latest release of a deliverable
This cuts down on the number of redundant error messages when a deliverable has many releases already. Change-Id: I23a043a9fb45fef4148531cfea210a4437e4e4cb Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
9dbb30dce1
commit
a8c3384fcd
@ -374,7 +374,9 @@ def validate_release_type(deliverable_info,
|
|||||||
workdir,
|
workdir,
|
||||||
mk_warning,
|
mk_warning,
|
||||||
mk_error):
|
mk_error):
|
||||||
"""Apply validation rules for the deliverable based on 'release-type'.
|
"""Apply validation rules for the deliverable based on 'release-type'
|
||||||
|
to the most recent release of a deliverable.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
link_mode = deliverable_info.get('artifact-link-mode', 'tarball')
|
link_mode = deliverable_info.get('artifact-link-mode', 'tarball')
|
||||||
@ -386,7 +388,7 @@ def validate_release_type(deliverable_info,
|
|||||||
print('no releases listed, skipping release-type checks')
|
print('no releases listed, skipping release-type checks')
|
||||||
return
|
return
|
||||||
|
|
||||||
for release in deliverable_info.get('releases', []):
|
release = deliverable_info['releases'][-1]
|
||||||
for project in release['projects']:
|
for project in release['projects']:
|
||||||
|
|
||||||
print('checking release-type for {}'.format(project['repo']))
|
print('checking release-type for {}'.format(project['repo']))
|
||||||
|
Loading…
Reference in New Issue
Block a user