# HG changeset patch # User Teemu Piippo # Date 1415553538 -7200 # Node ID f8cc57c608e2e5af58d28124962f28b6616c3efd # Parent 74d8ca04ff01f53a756fa980a5a330cf9f1fa717 ... diff -r 74d8ca04ff01 -r f8cc57c608e2 cobalt.py --- 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()