Bug#695274: libparse-debian-packages-perl: Problem parsing stanzas with more than 1 multiline entry

Simon Kainz simon at familiekainz.at
Sun Mar 2 17:20:22 UTC 2014


Am 2014-02-28 15:46, schrieb gregor herrmann:
> On Tue, 18 Feb 2014 09:24:57 +0100, Simon Kainz wrote:
>
>> I worked up a patch to hopefully fix this issue.
>>
>> Now each multiline entry is added to it's respective key by 
>> appending
>> a line break and the following multiline entries.
>
> I looked into this issue now (finally, sorry).
>
No problem, i used a custom version instead, specifically tuned to my 
needs.

> It seems that
> - Parse::Debian::Packages breaks on all multi-line entries,
>   not just the first one
>   (tested with random packages, which have a multiline Tag: field
>   and nothing else)
> - Parse::Debian::Packages assumes a body, probably the description,
>   wich doesn't exist anymore in the Packages file
>
> So this look quite broken :/
>
>
> I've now adjusted your patch a bit (replaced tabs with whitespace,
> removed debug output) and tested it with several packages.
>
Thank you.

> The patch is committed to the package's git repo:
> 
> http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libparse-debian-packages-perl.git
>
> I'd like to have some more review to see if this is the best way to
> fix it, and if there are some cases where this might cause problems.
> (E.g. I'm no sure when the description was dropped from the Packages
> file.)

Which data did you use for your tests? I used 
ftp://ftp.tugraz.at/mirror/debian/dists/sid/main/binary-amd64/Packages.gz 
which contains a Description: Field for every packaged in this file.

>
>
> Cheers,
> gregor
Bye, Simon



More information about the pkg-perl-maintainers mailing list