add intro text

This commit is contained in:
Ludwig Nussel
2015-12-14 17:59:21 +01:00
parent df33c7e04d
commit 417800e497
2 changed files with 11 additions and 6 deletions

View File

@@ -45,6 +45,13 @@ if not options.sender or not options.to or not options.relay:
url = "http://download.opensuse.org/tumbleweed/iso/"
iso = "openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
changes = "Changes.%s.txt"
intro = """
Please note that this mail was generated by a script.
The described changes are computed based on the x86_64 DVD.
The full online repo contains too many changes to be listed here.
"""
current_fn = os.path.join(os.path.dirname(__file__), "announcer-current-version")
u = urlparse(url+iso)
@@ -96,7 +103,7 @@ if not "====" in txt:
print >>sys.stderr, "no changes or file corrupt? not sending anything"
sys.exit(1)
msg = MIMEText(txt)
msg = MIMEText(intro + txt)
msg['Subject'] = 'New Tumbleweed snapshot %s released!'%version
msg['From'] = options.sender
msg['To'] = options.to