diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-01 21:36:36 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-02 00:57:17 +0200 |
commit | 7806a709cd53c14d348b93e55e626e7fc29fc523 (patch) | |
tree | 551ea8e0a5ad6863d2e9cb677b10f15664aa6b42 /bin | |
parent | 05b175ed308ab7b18aafaa88031aa0b5891fecd2 (diff) | |
download | jenkins.debian.net-7806a709cd53c14d348b93e55e626e7fc29fc523.tar.xz |
Revert "reproducible: scheduler: use the gzip sources file instead of the xz one" using python 3.4 allows us to use the xz files
This reverts commit e1ca3f62d40d557321cb8cfd28242b9203b91a2a.
Conflicts:
bin/reproducible_scheduler.py
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_scheduler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 851305f1..b7437328 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -11,7 +11,7 @@ # Schedule packages to be build. import sys -import gzip +import lzma import deb822 import aptsources.sourceslist import random @@ -47,9 +47,9 @@ def call_apt_update(suite): def update_sources_tables(suite): # download the sources file for this suite mirror = 'http://ftp.de.debian.org/debian' - remotefile = mirror + '/dists/' + suite + '/main/source/Sources.gz' + remotefile = mirror + '/dists/' + suite + '/main/source/Sources.xz' log.info('Downloading sources file for ' + suite + ': ' + remotefile) - sources = gzip.decompress(urlopen(remotefile).read()).decode('utf8') + sources = lzma.decompress(urlopen(remotefile).read()).decode('utf8') log.debug('\tdownloaded') # extract relevant info (package name and version) from the sources file new_pkgs = [] |