[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: make more robust
Holger Levsen
holger at moszumanska.debian.org
Thu Mar 12 18:54:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 4d3f9a9164640d0b4f01ef80cf3a10cb1c7bd6cf
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu Mar 12 19:52:37 2015 +0100
reproducible: make more robust
---
bin/reproducible_scheduler.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 96a8ffb..bdc757f 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -297,7 +297,10 @@ if __name__ == '__main__':
log.info('Updating schroots for all suites.')
for suite in SUITES:
call_apt_update(suite)
- overall = int(query_db('SELECT count(*) FROM schedule')[0][0])
+ try:
+ overall = int(query_db('SELECT count(*) FROM schedule')[0][0])
+ except:
+ overall = 9999
if overall > 250:
log.info(str(overall) + ' packages already scheduled, nothing to do.')
sys.exit()
@@ -305,5 +308,3 @@ if __name__ == '__main__':
for suite in SUITES:
update_sources_tables(suite)
scheduler()
- overall = int(query_db('SELECT count(*) FROM schedule')[0][0])
- log.info(str(overall) + ' packages scheduled at the end, in all suites.')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list