Bug#457929: python-debian: _multivalued.dump() not working on multivalued fields
Filippo Giunchedi
filippo at debian.org
Thu Dec 27 10:47:03 UTC 2007
Package: python-debian
Version: 0.1.7
Severity: normal
Hi,
consider the following code:
>>> from debian_bundle import deb822
>>> f = file("zsh_4.3.4-dev-6-3_all.changes")
>>> c = deb822.Changes(f)
>>> print c
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/var/lib/python-support/python2.4/debian_bundle/deb822.py", line 247, in __str__
return self.dump()
File "/var/lib/python-support/python2.4/debian_bundle/deb822.py", line 435, in dump
fd.write(key + ": " + self[key] + "\n")
TypeError: cannot concatenate 'str' and 'list' objects
after a bit of investigation it seems that the key lookup in dump()
is not case insensitive though _multivalued_fields keys are required to
be lowercase. Note that using Files instead of files as key in
deb822.py:470 works as expected.
thanks,
filippo
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.23-macbook (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-debian depends on:
ii python 2.4.4-6 An interactive high-level object-o
ii python-support 0.7.5 automated rebuilding support for p
python-debian recommends no packages.
-- no debconf information
More information about the pkg-python-debian-maint
mailing list