From 169790a62ae1fa5b5f13261c776a3aadfcbaace4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 15 Jul 2008 13:31:26 +0000 Subject: [PATCH] Fix the release script to correctly send emails when notes have some " svn path=/trunk/; revision=1242 --- release.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/release.py b/release.py index a41eee75..ec6b0f9b 100755 --- a/release.py +++ b/release.py @@ -276,7 +276,8 @@ class Project: ' --cc telepathy@lists.freedesktop.org' \ ' --subject "ANNOUNCE: Empathy %s"' \ ' --body "%s"' \ - ' gnome-announce-list@gnome.org' % (self.package_version, notes) + ' gnome-announce-list@gnome.org' % (self.package_version, + notes.replace('"', '\\"')) self.exec_cmd(cmd) def release(self): @@ -295,6 +296,8 @@ if __name__ == '__main__': dest="write_news", help="Generate and write news into the NEWS file") parser.add_option("-r", "--release", action="store_true",\ dest="release", help="Release the tarball") + parser.add_option("-e", "--email", action="store_true",\ + dest="email", help="Send the release announce email") (options, args) = parser.parse_args () if (options.print_news): @@ -305,4 +308,6 @@ if __name__ == '__main__': p.write_news () if (options.release): p.release () + if (options.email): + p.send_email () -- 2.39.2