Bug#535958: libparse-debcontrol-perl: fails to parse control files with comments
Jonathan Yu
jonathan.i.yu at gmail.com
Mon Jul 6 15:28:28 UTC 2009
Hi there:
On Mon, Jul 6, 2009 at 7:17 AM, Neil Williams<neil at codehelp.co.uk> wrote:
> Package: libparse-debcontrol-perl
> Version: 2.005-2
> Severity: normal
>
> debian/control does now allow comments (lines starting with # with no
> preceding whitespace) but when libparse-debcontrol-perl comes across
> such a debian/control file, parse_file returns an empty variable.
Is there a reference in policy for this?
I've been monitoring recent changes and I haven't come across anything
that would suggest that such comments are permitted. However, I might
have missed the relevant section of Policy.
What is the section number of the Policy that discusses this?
>
> Either parse_file should ignore the comments and preserve the rest of
> the content or preserve both comments and content.
Ideally it should just ignore comments, since it's just a parser and
won't write the file anyway. The comments are only to be consumed by
those reading the control file directly.
>
> -- System Information:
> Debian Release: squeeze/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (500, 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages libparse-debcontrol-perl depends on:
> ii libcompress-zlib-perl 2.015-1 Perl module for creation and manip
> ii libio-stringy-perl 2.110-4 Perl modules for IO from scalars a
> ii libwww-perl 5.828-1 WWW client/server library for Perl
> ii perl [libcompress-zlib-perl] 5.10.0-23 Larry Wall's Practical Extraction
>
> Versions of packages libparse-debcontrol-perl recommends:
> ii libpod-coverage-perl 0.20-1 checker for comprehensiveness of p
> pn libtest-pod-perl <none> (no description available)
> ii libtie-ixhash-perl 1.21-2 ordered associative arrays for Per
>
> libparse-debcontrol-perl suggests no packages.
>
> -- no debconf information
>
>
>
> _______________________________________________
> pkg-perl-maintainers mailing list
> pkg-perl-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-perl-maintainers
>
More information about the pkg-perl-maintainers
mailing list