Merge "do not require stable branches from latest release for independent projects"

This commit is contained in:
Zuul 2018-09-29 19:47:37 +00:00 committed by Gerrit Code Review
commit e28f950b71

View File

@ -1416,13 +1416,17 @@ def validate_stable_branches(deliv, context):
branch.name))
continue
latest_release = deliv.releases[-1]
if location != latest_release.version:
context.error(
('stable branches must be created from the latest '
'tagged release, and %s for %s does not match %s' % (
location, branch.name, latest_release.version))
)
if deliv.is_independent:
print('"latest release" rule does not apply '
'to independent repositories, skipping')
else:
latest_release = deliv.releases[-1]
if location != latest_release.version:
context.error(
('stable branches must be created from the latest '
'tagged release, and %s for %s does not match %s' % (
location, branch.name, latest_release.version))
)
elif branch_mode == 'tagless':
if not isinstance(location, dict):