[SCM] Debian package checker branch, master, updated. 1.24.4-57-gcfdcbc8
The following commit has been merged in the master branch:
commit 91155ac0251c95e7042c23199b89fb867384999b
Author: Jordà Polo <jorda@ettin.org>
Date: Fri Aug 15 10:34:47 2008 +0200
Don't run checks for which no tags will be issued
diff --git a/frontend/lintian b/frontend/lintian
index d5573c2..27b7a48 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1093,7 +1093,12 @@ for my $f (readdir CHECKDIR) {
}
shift(@secs);
- map { $_->{'script'}=$script; Tags::add_tag($_) } @secs;
+ $p->{'requested-tags'} = 0;
+ foreach my $tag (@secs) {
+ $tag->{'script'} = $script;
+ Tags::add_tag($tag);
+ $p->{'requested-tags'}++ if Tags::check_level($tag);
+ }
} # end: if ne lintian
}
@@ -1145,6 +1150,9 @@ if ($action eq 'check') {
|| ($check_info{$c}->{'abbrev'}
&& $dont_check{$check_info{$c}->{'abbrev'}})) {
#user requested not to run this check
+ } elsif ($Tags::experimental_class
+ && $check_info{$c}->{'requested-tags'} == 0) {
+ #no need to run this check, no tags will be issued
} else {
$checks{$c} = 1;
}
--
Debian package checker
Reply to: