Bug#446712: debian-policy: document comments in debian/control
Guillem Jover <guillem@debian.org> writes:
> On Mon, 2009-02-02 at 08:39:38 -0800, Russ Allbery wrote:
>> I suspect that we should restrict it to debian/control, since I believe
>> dpkg-* will strip out the comments and they may otherwise give other
>> tools heartburn. Might be good to ask the dpkg developers for a sure
>> response.
>
> All dpkg programs using the C parsing code do not handle # as a comment,
> and will happily take it as part of the field name if it contains a
> colon (as in «#Foo: bar»), otherwise it will barf about an invalid
> field.
>
> The dpkg perl programs that use the Dpkg::Control or Dpkg::Cdata modules
> do supprort comments.
Are there any dpkg programs using C parsing that read debian/control, or
is that only read by Perl programs and therefore can definitely have
comments?
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: