Bug#575400: lintian does not allow overriding bad-distribution-in-changes-file
Neil Williams <codehelp@debian.org> writes:
> When working with packages not intended for upload to Debian but used
> with internal repositories to create systems based on Debian, it is
> still useful to run lintian over the results of dpkg-buildpackage.
> Such configurations have non-standard suites and codenames, targeted at
> our own releases and schedules, and these are included in the .changes
> files so that reprepro and other tools can handle the .changes files
> correctly upon local upload.
> lintian does not appear to accept an override for a
> bad-distribution-in-changes-file where we need to use "development"
> instead of "unstable".
> Please allow lintian to support an override in
> debian/source.lintian-overrides to clear this warning.
There's really no way for Lintian to use information from the source
package to override tags for the *.changes file. Those are two entirely
separate "objects" to Lintian, and the *.changes file is parsed and tags
emitted for it before the source package is looked at.
The supported way of handling unwanted tags from the *.changes file is to
suppress them from the command line:
lintian --suppress-tags bad-distribution-in-changes-file
which will accomplish functionally the same thing as an override. There's
an open bug to allow one to put things like that into a configuration
file, which is definitely something we want to support going forward.
Does that sound like a reasonable solution to you?
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: