Record each announced release before mailing the next
The tracker was only saved after all mails were sent. An SMTP failure
partway through aborted the site build before the save, so the next
build mailed the releases that had already gone out a second time.
Saving after each mail, and stopping cleanly when one fails, means a
failed mail is retried on the next build while the ones already sent
are not repeated, and the site still gets built.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
2 files changed