send-qa-email: Save the QA email in case it doesn't reach the mailing lists.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Halstead 2021-02-22 15:51:22 -08:00 committed by Richard Purdie
parent 24b9aba18b
commit c7004d3208

View File

@ -141,6 +141,10 @@ Build hash information: \n
''' % (args.release, args.publish_dir.replace(web_root, web_url), buildhashes)
# Store a copy of the email in case it doesn't reach the lists
with open(os.path.join(args.publish_dir, "qa-email"), "wb") as qa_email:
qa_email.write(email.encode('utf-8'))
utils.printheader("Sending QA email")
env = os.environ.copy()
# Many distros have sendmail in */sbin