Commit 26240c00 authored by Felix Lechner's avatar Felix Lechner Committed by Chris Lamb

Abort lintian when tag definition is missing a 'Check:' stanza.

The field 'Check' in tag definitions is new and mandatory, but the
enforcing script t/scripts/tags/desc_fields.t does not run early
enough to prevent problems even in other scripts (vs. tag-related
tests). A proper solution requires a re-ordering of test scripts.

As a start, this aborts Lintian and emits a meaningful error message.

Gbp-Dch: ignore
parent 379ce51f
......@@ -158,6 +158,9 @@ sub new {
my $taginfo = Lintian::Tag::Info->new;
die "Tag in $tagpath is not associated with a check"
unless length $taginfo->script;
unless (exists $self->{'known-tags'}{$taginfo->tag}) {
$self->{'known-tags'}{$taginfo->tag} = $taginfo;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment