summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-26 19:13:10 +0100
committerMattia Rizzolo <mattia@mapreri.org>2015-02-26 19:13:15 +0100
commit8f85219ff16dfd34cff8dc5ced4b17843ba4bfcf (patch)
treebce483b6affd649ca48c63455d30438a3ca75f81 /bin
parent3edc6337c00c4f6273c07cabc886733e93e8029a (diff)
downloadjenkins.debian.net-8f85219ff16dfd34cff8dc5ced4b17843ba4bfcf.tar.xz
reproducible: scheduler: explicitly decode using utf8 + workaround for #647455 where deb822.iter_paragraphs() wants a list of string
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index ccc58974..168a5261 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -56,11 +56,11 @@ def update_sources_tables(suite):
mirror = 'http://ftp.de.debian.org/debian'
remotefile = mirror + '/dists/' + suite + '/main/source/Sources.gz'
log.info('Downloading sources file for ' + suite + ': ' + remotefile)
- sources = gzip.decompress(urlopen(remotefile).read()).decode()
+ sources = gzip.decompress(urlopen(remotefile).read()).decode('utf8')
log.debug('\tdownloaded')
# extract relevant info (package name and version) from the sources file
new_pkgs = []
- for src in deb822.Sources.iter_paragraphs(sources):
+ for src in deb822.Sources.iter_paragraphs(sources.split('\n')):
pkg = (src['Package'], src['Version'], suite)
new_pkgs.append(pkg)
# get the current packages in the database