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

View File

@ -207,9 +207,7 @@ class ChangeLogger(cmdln.Cmdln):
p1 = set(v1pkgs.keys())
p2 = set(v2pkgs.keys())
print "Summary of the x86_64 DVD"
print
print "Packages changed on medium:"
print "Packages changed:"
group = self._get_packages_grouped(v2pkgs, p1&p2)
# pprint(p1&p2)
# pprint(group)
@ -251,11 +249,11 @@ class ChangeLogger(cmdln.Cmdln):
print details
print "\n\n\n"
print "Packages removed from medium:"
print "Packages removed:"
group = self._get_packages_grouped(v1pkgs, p1-p2)
print " "+"\n ".join(["\n > ".join(sorted(group[s])) for s in sorted(group.keys()) ])
print "\n"
print "Packages added to medium:"
print "Packages added:"
group = self._get_packages_grouped(v2pkgs, p2-p1)
print " "+"\n ".join(["\n > ".join(sorted(group[s])) for s in sorted(group.keys()) ])