Bug#875282: diffoscope: AttributeError: 'NoneType' object has no attribute 'get_member'
Ximin Luo
infinity0 at debian.org
Wed Sep 20 22:15:00 UTC 2017
Mattia Rizzolo:
> [..]
> File "/usr/lib/python3/dist-packages/diffoscope/comparators/deb.py", line 102, in control
> control_file = self.as_container.control_tar.as_container.lookup_file('./control')
> File "/usr/lib/python3/dist-packages/diffoscope/comparators/deb.py", line 78, in control_tar
> return specialize(member.as_container.get_member('content'))
> AttributeError: 'NoneType' object has no attribute 'get_member'
>
This is caused by #876316, file misdetects control.tar.gz as "DOS/MBR boot sector". The rest of deb.py assumes that the detection always succeeds correctly and does stuff like ".get_member" without checking whether it failed.
In the meantime I'll see if I can get diffoscope to work around this somehow.
X
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
More information about the Reproducible-builds
mailing list