Bug#514853: lintian: "Distribution" field conforming to standard is not accepted
> That section of Policy also claims that "frozen" is a valid distribution and
> that one can't upload to "testing" (although it could be argue that tpu isn't
> testing), so it could possibly do with some attention. :-/
>
> Whilst "testing stable" is technically valid, I'm not entirely sure that all
> parts of the archive software would do the right thing with such a package.
Actually I'm unable to find a pair of distributions that would be accepted:
E: kmt_0.5-2_i386.changes: bad-distribution-in-changes-file stable unstable
E: kmt_0.5-2_i386.changes: bad-distribution-in-changes-file stable experimental
E: kmt_0.5-2_i386.changes: bad-distribution-in-changes-file unstable experimental
E: kmt_0.5-2_i386.changes: bad-distribution-in-changes-file unstable frozen
Could you show a working example please?
Code snippet from /usr/bin/lintian:
} elsif (! (($data->{distribution} eq 'stable')
or ($data->{distribution} eq 'testing')
or ($data->{distribution} eq 'unstable')
or ($data->{distribution} eq 'experimental')
or ($data->{distribution} =~ /\w+-backports/)
or ($data->{distribution} =~ /\w+-proposed-updates/)
or ($data->{distribution} =~ /\w+-security/))
) {
# bad distribution entry
tag("bad-distribution-in-changes-file",
$data->{distribution});
}
It seems that this elsif statement does NOT conform with Debian Policy Manual.
It accepts this:
Distribution: no-such-distro-backports foo bar
but refuses reasonable list of distributions.
Regards
Gabor
Reply to: