empathy r2664 - trunk



Author: xclaesse
Date: Tue Mar 10 11:13:16 2009
New Revision: 2664
URL: http://svn.gnome.org/viewvc/empathy?rev=2664&view=rev

Log:
Fix release script in case there is no fixed bugs

From: Xavier Claessens <xclaesse gmail com>

Modified:
   trunk/release.py

Modified: trunk/release.py
==============================================================================
--- trunk/release.py	(original)
+++ trunk/release.py	Tue Mar 10 11:13:16 2009
@@ -241,7 +241,8 @@
 					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 @@
 
 	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
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]