...

Sun, 09 Nov 2014 19:18:58 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 09 Nov 2014 19:18:58 +0200
changeset 67
f8cc57c608e2
parent 66
74d8ca04ff01
child 68
ecc161d4a6fa
child 69
1b84de3e0d29
child 72
2266d6d73de3

...

cobalt.py file | annotate | diff | comparison | revisions
--- a/cobalt.py	Sun Nov 09 19:17:45 2014 +0200
+++ b/cobalt.py	Sun Nov 09 19:18:58 2014 +0200
@@ -320,12 +320,8 @@
 ' Retrieves and processes commits for zandronum repositories '
 ' Ensure both repositories are OK before using this! '
 def process_zan_repo_updates():
-	result = 0
-	
 	for n in ['zandronum-stable', 'zandronum', 'zandronum-sandbox', 'zandronum-sandbox-stable']:
-		result += process_one_repo (n)
-	
-	return result
+		process_one_repo (n)
 
 def process_one_repo (repo_name):
 	global repocheck_timeout
@@ -577,8 +573,6 @@
 			continue
 		#tried
 	#done
-
-	return num_commits > 0
 #enddef
 
 def plural (a):
@@ -825,11 +819,7 @@
 			check_admin (sender, ident, host, command)
 			global repocheck_timeout
 			repocheck_timeout = 0
-			numcommits = process_zan_repo_updates()
-
-			if numcommits == 0:
-				self.privmsg (replyto, 'No new commits in ' + n)
-			#fi
+			process_zan_repo_updates()
 		elif command == 'die':
 			check_admin (sender, ident, host, command)
 			quit()

mercurial