diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-03-10 19:13:16 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-10 19:13:16 +0800 |
commit | e70e095faa901c8b1aa061ec61a3206178ef47f5 (patch) | |
tree | 7eb6f2818f9c6e1a8955208d9cb2b8f90a89bf03 | |
parent | 6a24207e2c0e705391e66f2e22d4f5fa5ac93d34 (diff) | |
download | gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.tar gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.tar.gz gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.tar.bz2 gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.tar.lz gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.tar.xz gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.tar.zst gsoc2013-empathy-e70e095faa901c8b1aa061ec61a3206178ef47f5.zip |
Fix release script in case there is no fixed bugs
From: Xavier Claessens <xclaesse@gmail.com>
svn path=/trunk/; revision=2664
-rwxr-xr-x | release.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/release.py b/release.py index 940072a89..e94629626 100755 --- a/release.py +++ b/release.py @@ -241,7 +241,8 @@ class Project: message += '\n' message += msg - self.query_bug_commits () + if len (self.bug_commits) > 0: + self.query_bug_commits () def make_tag(self): new_tag = self.package_name.upper() + '_' +\ @@ -256,8 +257,13 @@ class Project: def generate_news(self): self.get_commits() - news = 'NEW in '+ self.package_version + '\n==============\n' - news += self.commits + '\nBugs fixed:\n' + self.bugs + '\nTranslations:\n' + self.translations + '\n' + news = 'NEW in '+ self.package_version + '\n==============\n' + if self.commits != '': + news += self.commits + '\n' + if self.bugs != '': + news += 'Bugs fixed:\n' + self.bugs + '\n' + if self.translations != '': + news += 'Translations:\n' + self.translations + '\n' return news |