summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-04 23:22:36 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-05 10:47:21 +0200
commit144bea77e661f9297ea846e3eb6e7e12c4db8dae (patch)
treee14752635f5114ce08444242e1b84009bc6bfa50 /bin
parent72e9099015e6cce2780639699e47615ed8fc7f3f (diff)
downloadjenkins.debian.net-144bea77e661f9297ea846e3eb6e7e12c4db8dae.tar.xz
reproducible: scheduler: print 'apt-get update' call when in debug mode
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 8ecca8a0..7baf2df4 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -29,9 +29,11 @@ from reproducible_html_packages import purge_old_pages
def call_apt_update(suite):
# try three times, before failing the job
for i in [1, 2, 3]:
- if not call(['schroot', '--directory', '/root', '-u', 'root', \
- '-c', 'source:jenkins-reproducible-'+suite, '--', \
- 'apt-get', 'update']):
+ to_call =['schroot', '--directory', '/root', '-u', 'root', \
+ '-c', 'source:jenkins-reproducible-'+suite, '--', \
+ 'apt-get', 'update']
+ log.debug('calling ' + ' '.join(to_call))
+ if not call(to_call):
return
else:
log.warning('`apt-get update` failed. Retrying another ' + str(3-i)