diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2009-12-05 12:42:49 +0200 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2009-12-05 12:42:49 +0200 |
commit | 2bc3218cf4f70db497b97687b0d4bc3a847ec217 (patch) | |
tree | 75ca96f35e54037d4b0be8c82fb4247405d45284 /debian/changelog | |
parent | 761e32c1684dba651874b5e638fc65c9a56d56c2 (diff) | |
download | dctrl-tools-2bc3218cf4f70db497b97687b0d4bc3a847ec217.tar.gz |
Add support for #-comments
Debian Policy allows, in debian/control, lines that start with the
'#'-character. Those lines are treated as comments by Policy, and ignored.
This patch adds parser support for these comments in dctrl-tools.
Unfortunately, it is not possible (without major changes) to ignore
those comments semantically, since dctrl-tools represents paragraphs
and fields as substrings of the input file.
Accordingly, what this patch does is allow the parser to not choke on
comments. Comments found inside a paragraph are left semantically
significant (ie. part of the field body in which they are found),
while comments otside of paragraphs are elided.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
Diffstat (limited to 'debian/changelog')
-rw-r--r-- | debian/changelog | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index b8bee61..d5c5a29 100644 --- a/debian/changelog +++ b/debian/changelog @@ -29,13 +29,16 @@ dctrl-tools (2.14) UNRELEASED; urgency=low key...) Closes: #559543 (doesn't take into account secondary sorting criteria) Reported by: Ryan Niebur <ryan@debian.org> + * lib/paragraph.c (para_parse_next): parse comment lines that start with + unindented '#'-characters (they are not removed semantically, though) + Closes: #521006 (support #-comments) [ Stefano Zacchiroli ] * grep-dctrl: add new matching mode --whole-pkg/-w: it is an improved -e matching exact package names, i.e., no sub-string matching on package names. Closes: #383921 - -- Antti-Juhani Kaijanaho <ajk@debian.org> Sat, 05 Dec 2009 12:32:47 +0200 + -- Antti-Juhani Kaijanaho <ajk@debian.org> Sat, 05 Dec 2009 12:41:52 +0200 dctrl-tools (2.13.0) unstable; urgency=low |