have init-series skip deliverables never released in the last series

Change-Id: I1ff9fab7598993d7356c02d249fb1eca9a9c5de8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-01-23 14:52:57 -05:00
parent df0975e12a
commit 40ad5ac402

View File

@ -58,6 +58,11 @@ def main():
for team, series, name, data in old_deliverables:
if name in new_deliverables:
continue
if not data.get('releases'):
# There were no releases for the deliverable in the
# previous series, stop carrying it over.
print('{} skipped (no releases in {})'.format(name, args.old_series))
continue
# Clean up some series-specific data that should not be copied
# over.
for key in ['releases', 'branches', 'release-notes']: