diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-04 23:22:36 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-04-05 10:47:21 +0200 |
commit | 144bea77e661f9297ea846e3eb6e7e12c4db8dae (patch) | |
tree | e14752635f5114ce08444242e1b84009bc6bfa50 | |
parent | 72e9099015e6cce2780639699e47615ed8fc7f3f (diff) | |
download | jenkins.debian.net-144bea77e661f9297ea846e3eb6e7e12c4db8dae.tar.xz |
reproducible: scheduler: print 'apt-get update' call when in debug mode
-rwxr-xr-x | bin/reproducible_scheduler.py | 8 |
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) |