[lintian] 02/11: harness: Fix typo, renames a cmd-line argument
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 421047add3df35d8803501bd1d3268bc3755b74f
Author: Niels Thykier <niels@thykier.net>
Date: Sat Dec 21 10:43:52 2013 +0100
harness: Fix typo, renames a cmd-line argument
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/harness | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/reporting/harness b/reporting/harness
index 30929cb..f35b374 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -43,7 +43,7 @@ Options:
--to-stdout
[For debugging] Have output go to stdout as well as the usual
log files. Note, this option has no (extra) effect with --dry-run.
- --schedule-chuck-size N
+ --schedule-chunk-size N
Schedule at most N groups in a given run of Lintian. If more than N
groups need to be processed, harness will invoke Lintian more than
once. If N is 0, schedule all groups in one go. (Default: 512)
@@ -58,7 +58,7 @@ END
}
my $LOG_FD;
-my %opt = ('schedule-chuck-size' => 512,);
+my %opt = ('schedule-chunk-size' => 512,);
my %opthash = (
'i' => \$opt{'incremental-mode'},
@@ -66,7 +66,7 @@ my %opthash = (
'f' => \$opt{'full-mode'},
'r' => \$opt{'reports-only'},
'dry-run' => \$opt{'dry-run'},
- 'schedule-chuck-size=i' => \$opt{'schedule-chuck-size'},
+ 'schedule-chunk-size=i' => \$opt{'schedule-chunk-size'},
'to-stdout' => \$opt{'to-stdout'},
'help|h' => \&usage,
);
@@ -374,7 +374,7 @@ unless ($opt{'reports-only'}) {
%dirty_groups = %skip = @diffs = @manifests = ();
if (@worklist) {
- my $scs = $opt{'schedule-chuck-size'};
+ my $scs = $opt{'schedule-chunk-size'};
if ($opt{'full-mode'}) {
# truncate in full-mode
open(my $fd, '>', $lintian_log)
@@ -550,33 +550,33 @@ sub _parse_pkgs_pg {
}
sub process_worklist {
- my ($worklist_ref, $output_file, $schedule_chuck_size) = @_;
+ my ($worklist_ref, $output_file, $schedule_chunk_size) = @_;
my $round = 0;
my $rounds = 1;
my @worklist = @{$worklist_ref};
my $all_ok = 1;
- if ($schedule_chuck_size > 0) {
+ if ($schedule_chunk_size > 0) {
# compute the number of rounds needed.
- my $size_up = scalar @worklist + ($schedule_chuck_size - 1);
- $rounds = int($size_up / $schedule_chuck_size);
+ my $size_up = scalar @worklist + ($schedule_chunk_size - 1);
+ $rounds = int($size_up / $schedule_chunk_size);
}
Log(
sprintf(
'Groups to process %d will take %d round(s) [round limit: %s]',
scalar @worklist,
- $rounds, $schedule_chuck_size > 0 ? $schedule_chuck_size : 'none'
+ $rounds, $schedule_chunk_size > 0 ? $schedule_chunk_size : 'none'
));
Log('Command line used: ' . join(q{ }, @lintian_cmd));
while (@worklist) {
my $len = scalar @worklist;
$round++;
- # correct bounds to fit chuck size
- if ($schedule_chuck_size > 0 and $len > $schedule_chuck_size) {
- $len = $schedule_chuck_size;
+ # correct bounds to fit chunk size
+ if ($schedule_chunk_size > 0 and $len > $schedule_chunk_size) {
+ $len = $schedule_chunk_size;
}
Log("Running Lintian (round $round/$rounds) ...");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: