Bug#953426: python-apt: Hasjes problem
Control: reassign -1 ftp.debian.org
On Mon, Mar 09, 2020 at 06:12:14PM +0100, Christian Marillat wrote:
> Package: python-apt
> Version: 1.9.10
> Severity: serious
>
> Dear Maintainer,
>
> Probably related that now apt use libgcrypt.
>
> Output come from dak. Bug should be reassigned to ftp.debian.org is needed.
>
>
> dak process-upload -a -p -d <path to unchecked>
>
> dak_1.0.db122~20200307.git9dac010a-dmo1_amd64.changes
>
> dak (1.0.db122~20200307.git9dac010a-dmo1) unstable; urgency=medium
> .
> * New upstream release.
>
>
>
> Reason:
> Processing raised an exception: 'apt_pkg.Hashes' object has no attribute 'md5'.
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/daklib/archive.py", line 1019, in check
> chk().check(self)
> File "/usr/lib/python2.7/dist-packages/daklib/checks.py", line 146, in check
> self._check_hashes(upload, changes.filename, changes.files.itervalues())
> File "/usr/lib/python2.7/dist-packages/daklib/checks.py", line 179, in _check_hashes
> f.check(upload.directory)
> File "/usr/lib/python2.7/dist-packages/daklib/upload.py", line 174, in check
> self.check_fh(fh)
> File "/usr/lib/python2.7/dist-packages/daklib/upload.py", line 188, in check_fh
> if hashes.md5 != self.md5sum:
> AttributeError: 'apt_pkg.Hashes' object has no attribute 'md5'
gotta uses hashes.hashes.find("MD5Sum") now.
API breaks in Python are messed up, given that there's no static
typing that would bring it up during a rebuild.
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
Reply to: