summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_scheduler.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-12 19:52:37 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-12 19:52:37 +0100
commit4d3f9a9164640d0b4f01ef80cf3a10cb1c7bd6cf (patch)
treed8f2de0b027ea5fde47a77a0b65617841b1d6143 /bin/reproducible_scheduler.py
parent765bfa33685337da1bc9e7920779e29abaa30a74 (diff)
downloadjenkins.debian.net-4d3f9a9164640d0b4f01ef80cf3a10cb1c7bd6cf.tar.xz
reproducible: make more robust
Diffstat (limited to 'bin/reproducible_scheduler.py')
-rwxr-xr-xbin/reproducible_scheduler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 96a8ffb6..bdc757f3 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.')