Bug#538376: Acknowledgement (python-debian: debian_bundle parses some multilines fields inconsistantly)

John Wright jsw at debian.org
Sat Jul 25 15:02:16 UTC 2009


On Sat, Jul 25, 2009 at 02:05:26PM +0200, sean finney wrote:
> severity 538376 normal
> thanks
> 
> okay i take back what i said about this being a regression, it seems that
> in previous versions (< 0.1.10) it was treated as a plain text field (i.e. 
> no dictionary at all), which meant that the fields were probably ignored
> entirely in the patch-tracker but are now partially showing up.
> 
> still a bug though afaict :)

Gah!  This is apt_pkg's fault: it strips off the leading '\n'.  This
means our goal of having the output match the input will in general be
broken when you use apt_pkg.  (Right now, the only place that's used by
default is when you use iter_paragraphs.)

A temporary workaround is to pass use_apt_pkg=False to the
iter_paragraphs method.  On large files, you'll probably notice a bit of
a performance hit.  I'll see what we can do to preserve this information
with apt_pkg.

-- 
John Wright <jsw at debian.org>





More information about the pkg-python-debian-maint mailing list