Commit ff47280b authored by Chris Lamb's avatar Chris Lamb 💬

Drop the deprecated --fail-on-warnings option (it was scheduled for removal in...

Drop the deprecated --fail-on-warnings option (it was scheduled for removal in buster) to help towards fixing Debian bug #709932 ("option to exit with exit status != 0 only on internal errors").
parent 8e9ffe71
......@@ -178,8 +178,6 @@ Behavior options:
--display-source X restrict displayed tags by source
-E, --display-experimental display "X:" tags (normally suppressed)
--no-display-experimental suppress "X:" tags
--fail-on-warnings return a non-zero exit status if warnings found
(Deprecated)
-i, --info give detailed info about tags
-I, --display-info display "I:" tags (normally suppressed)
-L, --display-level display tags with the specified level
......@@ -542,7 +540,6 @@ my %opthash = (
'color=s' => \$opt{'color'},
'unpack-info|U=s' => \@unpack_info,
'allow-root' => \$opt{'allow-root'},
'fail-on-warnings' => \$opt{'fail-on-warnings'},
'keep-lab' => \$opt{'keep-lab'},
'no-tag-display-limit' => sub { $opt{'tag-display-limit'} = 0; },
'tag-display-limit=i' => \$opt{'tag-display-limit'},
......@@ -621,10 +618,6 @@ sub main {
configure_output();
if ($opt{'fail-on-warnings'}) {
warning('--fail-on-warnings is deprecated');
}
# check for arguments
if ( $action =~ /^(?:check|unpack)$/
and $#ARGV == -1
......@@ -1045,8 +1038,6 @@ sub process_group {
my $stats = $TAGS->statistics($lpkg);
if ($stats->{types}{E}) {
$exit_code = 1;
} elsif ($opt{'fail-on-warnings'} && $stats->{types}{W}) {
$exit_code = 1;
}
}
post_pkg_process_overrides($lpkg);
......@@ -1139,7 +1130,6 @@ sub parse_config_file {
'display-experimental' => \$opt{'display-experimental'},
'display-info' => \&cfg_display_level,
'display-level' => \&cfg_display_level,
'fail-on-warnings' => \$opt{'fail-on-warnings'},
'info' => \$opt{'info'},
'jobs' => \$opt{'jobs'},
'pedantic' => \&cfg_display_level,
......@@ -1194,11 +1184,6 @@ sub parse_config_file {
" - Using the first value!\n";
next;
}
if ($var eq 'fail-on-warnings') {
print STDERR "The config option ${var} is deprecated\n";
print STDERR
" - Found in $opt{'LINTIAN_CFG'} (line: $.)\n";
}
$conf_opt{$var} = 1;
$found = 1;
# Translate boolean strings to "0" or "1"; ignore
......
......@@ -209,17 +209,6 @@ bug reports are always welcome (particularly if they include fixes).
These options overrides the B<display-experimental> variable in the
configuration file.
=item B<--fail-on-warnings>
By default, B<lintian> exits with 0 status if only warnings were
found. If this flag is given, exit with a status of 1 if either
warnings or errors are found.
This option overrides the B<fail-on-warnings> variable in the
configuration file.
This option is deprecated and will be removed in the near future.
=item B<-i>, B<--info>
Print explanatory information about each problem discovered in
......
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