#1009655 dctrl-tools: Matches comment bodies

Package:
dctrl-tools
Source:
dctrl-tools
Description:
Command-line tools to process Debian package information
Submitter:
Stefano Rivera
Date:
2022-04-13 17:57:04 UTC
Severity:
normal
#1009655#5
Date:
2022-04-13 17:54:35 UTC
From:
To:
When support for comments was added in
https://salsa.debian.org/debian/dctrl-tools/-/commit/2bc3218cf4f70db497b97687b0d4bc3a847ec217
it was known that this was incomplete (missing semantic understanding of
comments) but there doesn't appear to be an open bug tracking this.

Currently grep-dctrl will match on the bodies of comments, which is very
surprising for the user:

grep-dctrl -FBuild-Depends -w bar << EOF
Source: foo
Build-Depends:
  foo,
# bar,
  baz
EOF

This seems like something that should be opt-in, not default behaviour.

SR