Merge "protect list-changes from new repos in a deliverable"

This commit is contained in:
Jenkins 2015-11-27 00:18:38 +00:00 committed by Gerrit Code Review
commit eec1266fc7

View File

@ -140,9 +140,11 @@ def main():
start_range = None
if previous_release:
projects = previous_release['projects']
previous_project = next(x for x in projects
if x['repo'] == project['repo'])
previous_project = {
x['repo']: x
for x in previous_release['projects']
}.get(project['repo'])
if previous_project is not None:
start_range = previous_project['hash']
if not start_range:
start_range = (