init-series: Skip unrelease comment for trailing
Cycle trailing deliverables are often not released by the time we initialize the next series. We add a comment to deliverable files during their creation to note if they were not released in the last cycle to help highlight orphaned deliverables. This can be misleading for cycle trailing deliverables, since usually they do end up being released, but after we've created the file and included the comment. To make this comment more useful, this removes its inclusion for trailing projects. Change-Id: I010dadc2ca9026248e7f9dfc89d257afdf97be72 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
fef70e90fc
commit
0c265869aa
@ -75,7 +75,8 @@ def main():
|
||||
with open(outfilename, 'w', encoding='utf-8') as f:
|
||||
print('{} created'.format(outfilename))
|
||||
f.write(yamlutils.dumps(raw_data))
|
||||
if not deliv.is_released and not deliv.branches:
|
||||
if (not deliv.is_released and not deliv.branches and
|
||||
deliv.type != 'trailing'):
|
||||
# There were no releases for the deliverable in the
|
||||
# previous series, add a comment in the file.
|
||||
f.write(warn)
|
||||
|
Loading…
Reference in New Issue
Block a user