Package: python-debian Version: 0.1.21+nmu2 Severity: normal SHA-512 hashes are allowed in apt repository Release/Sources files but python-debian returns them as unicode strings instead of the usual multi-valued fields that other hash headers return.
I am currently using this hack to work around this issue.
if 'sha512' not in debian.deb822.Release._multivalued_fields:
debian.deb822.Release._multivalued_fields['sha512'] = ['sha512',
'size', 'name']
if 'checksums-sha512' not in debian.deb822.Sources._multivalued_fields:
debian.deb822.Sources._multivalued_fields['checksums-sha512'] =
['sha512', 'size', 'name']
Here is an example of a Release file with SHA-512 hashes:
http://aptosid.com/debian/dists/sid/Release
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-debian depends on:
ii python 2.7.5-5
ii python-chardet 2.0.1-2
ii python-six 1.4.1-1
Versions of packages python-debian recommends:
ii python-apt 0.9.1
Versions of packages python-debian suggests:
ii gpgv 1.4.15-1.1
--
bye,
pabs
http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part
-- http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-python-debian-maint
