Bug#732599: python-debian: SHA-512 hashes are not recognised as multi-valued fields in Release/Sources files
Paul Wise
pabs at debian.org
Thu Dec 19 08:25:34 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20131219/cc7fadc8/attachment.sig>
More information about the pkg-python-debian-maint
mailing list