[Reproducible-builds] Bug#829115: Bug#829115: diffoscope: …/comparators/ps.py: TypeError: cannot use a string pattern on a bytes-like object
mattia at debian.org
Thu Jun 30 16:30:26 UTC 2016
control: reassign -1 python3-magic
control: forcemerge 828833 -1
On Thu, Jun 30, 2016 at 06:25:23PM +0200, Axel Beckert wrote:
> running reprotest (It's there now, yay! :-) over my very recently
> accepted package dpmb (from git commit
> 5f069a920df4e6f20a8eb9309c20c39ad60e6132) with
> caused diffoscope to bail out as follows:
> dpkg-buildpackage: info: binary-only upload (no source included)
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/diffoscope/__main__.py", line 177, in main
> File "/usr/lib/python3/dist-packages/diffoscope/__main__.py", line 148, in run_diffoscope
> parsed_args.file1, parsed_args.file2)
> File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", line 94, in compare_root_paths
> file1 = specialize(FilesystemFile(path1, container=container1))
> File "/usr/lib/python3/dist-packages/diffoscope/comparators/__init__.py", line 175, in specialize
> if cls.recognizes(file):
> File "/usr/lib/python3/dist-packages/diffoscope/comparators/ps.py", line 38, in recognizes
> return PsFile.RE_FILE_TYPE.match(file.magic_file_type)
> TypeError: cannot use a string pattern on a bytes-like object
> reprotest 'dpkg-buildpackage -b' 388.71s user 3.51s system 0% cpu 15:39:40.01 total
> I'm not sure how reprotest called diffoscope so I can't tell the exact
> diffoscope commandline to reproduce this.
> I'm also not 100% sure if I used reprotest in the correct way since
> there is just its --help message, but no man page with examples yet.
This bug is caused by a bug in src:file, which is now fixed.
> Versions of packages diffoscope depends on:
> ii python3-magic 1:5.28-2
this is the fixed version.
Are you sure you ran diffoscope with that version of python3-magic?
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: not available
More information about the Reproducible-builds