[Qa-jenkins-scm] [jenkins.debian.net] 03/04: reproducible: scheduler: print 'apt-get update' call when in debug mode

Holger Levsen holger at moszumanska.debian.org
Sun Apr 5 08:47:46 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 144bea77e661f9297ea846e3eb6e7e12c4db8dae
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sat Apr 4 23:22:36 2015 +0200

    reproducible: scheduler: print 'apt-get update' call when in debug mode
---
 bin/reproducible_scheduler.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 8ecca8a..7baf2df 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)

-- 
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