[Reproducible-builds] Bug#833738: python-popcon: assumes all-popcon-results.txt.gz is UTF-8
Chris Lamb
lamby at debian.org
Mon Aug 8 11:17:42 UTC 2016
Source: python-popcon
Version: 1.3
Severity: serious
Tags: patch
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Hi,
Since (at least) 07-Aug-2016 14:04, the all-popcon-results.txt.gz file
contains an invalid line:
Package: libfyba0-dbg 0 2 0 0
--> Package: libf erdp-ommon 0 0 0 1
Package: libg++2.8.1.3-dbg 0 0 0 1
That's (currently) line 54869. The "space" on the second line is actually
a 0xa0 character. This is making the package unusable.
$ python3
Python 3.5.2+ (default, Aug 5 2016, 08:07:14)
[GCC 6.1.1 20160724] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import popcon
>>> popcon.package("foo")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/popcon.py", line 145, in package
raw = package_raw(*packages)
File "/usr/lib/python3/dist-packages/popcon.py", line 189, in package_raw
data = _fetch()
File "/usr/lib/python3/dist-packages/popcon.py", line 108, in _fetch
txt = _decompress(txt)
File "/usr/lib/python3/dist-packages/popcon.py", line 134, in _decompress
data = data.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 3574857: invalid start byte
You can see this happening here:
https://jenkins.debian.net/view/reproducible/view/problems/job/reproducible_html_notes/
Patch attached. NB. the comment in the lookup section.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-popcon.diff.txt
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160808/6d5b866d/attachment.txt>
More information about the Reproducible-builds
mailing list