Bug#579063: libparse-debian-packages-perl: Parse error when description body contains a colon.

Ansgar Burchardt ansgar at 43-1.org
Thu Apr 29 08:12:25 UTC 2010


tags 579063 + upstream confirmed
forwarded 579063 https://rt.cpan.org/Ticket/Display.html?id=57031
thanks

Hi,

"G. de la Rey" <debian at delarey.org> writes:

> When there is a colon in the text description of a package, parsing fails
> by treating it as if a key for the returned hash has been found.  So as 
> well as the normal keys, such as Section, Filename, etc., some random keys
> get created occasionally.  For instance, the first package in the current
> Packages file for sid, 2vcard, comes up with an unexpected key of
> 'and alias files from the following formats'.
>
> The attached patch fixes this; it also makes next() return a reference to
> %package rather than a copy of it, which seems to run more quickly.

I forwarded your bug report upstream [1], including a patch omitting the
last part: I think avoiding API changes is better.

Regards,
Ansgar

[1] <https://rt.cpan.org/Ticket/Display.html?id=57031>





More information about the pkg-perl-maintainers mailing list