summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_scheduler.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-01 01:01:50 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-01 01:01:50 +0200
commit696a4c505ad7cd540d97f7be8389ba2b4a1b6df5 (patch)
tree097eb845ddbe41429d7565f0f18584f6a86aa7e9 /bin/reproducible_scheduler.py
parent1d4f520fdc025343d6a068d86b3ed9531cdc8f21 (diff)
downloadjenkins.debian.net-696a4c505ad7cd540d97f7be8389ba2b4a1b6df5.tar.xz
reproducible: upgrade all the schroots in maintenance jobs, maybe do the same for pbuilder bases?
Diffstat (limited to 'bin/reproducible_scheduler.py')
-rwxr-xr-xbin/reproducible_scheduler.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 3a056cd0..c0b2497b 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -142,24 +142,6 @@ class Limit:
return self.get_limit('*')
-def call_apt_update(suite):
- # try three times, before failing the job
- for i in [1, 2, 3]:
- 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)
- + ' times.')
- sleep(randint(1, 70) + 30)
- print_critical_message('`apt-get update` for suite ' + suite +
- ' failed three times in a row, giving up.')
- sys.exit(1)
-
-
def update_sources(suite):
# download the sources file for this suite
mirror = 'http://ftp.de.debian.org/debian'
@@ -528,7 +510,6 @@ def scheduler(arch):
if __name__ == '__main__':
log.info('Updating schroots and sources tables for all suites.')
for suite in SUITES:
- call_apt_update(suite)
update_sources(suite)
purge_old_pages()
query = 'SELECT count(*) ' + \