From 144bea77e661f9297ea846e3eb6e7e12c4db8dae Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 4 Apr 2015 23:22:36 +0200 Subject: reproducible: scheduler: print 'apt-get update' call when in debug mode --- bin/reproducible_scheduler.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') 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) -- cgit v1.2.3-70-g09d2