[SCM] Debian package checker branch, master, updated. 2.5.11-3-ge253f8f
The following commit has been merged in the master branch:
commit 47e89a338b475e6c52079be6adb2fb4184c320c3
Author: Niels Thykier <niels@thykier.net>
Date: Thu Dec 13 13:39:37 2012 +0100
harness: Add --to-stdout cmd line option
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/debian/changelog b/debian/changelog
index e770364..4d7478c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+lintian (2.5.12) UNRELEASED; urgency=low
+
+ * reporting/harness:
+ + [NT] Add --to-stdout option to emit log information to
+ stdout as well as the log files.
+
+ -- Niels Thykier <niels@thykier.net> Thu, 13 Dec 2012 13:38:59 +0100
+
lintian (2.5.11) experimental; urgency=low
* Summary of tag changes:
diff --git a/reporting/harness b/reporting/harness
index 8127fea..4f6bd61 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -39,6 +39,9 @@ Options:
--dry-run pretend to do the actions without actually doing them. The
"normal" harness output will go to stdout rather than the
harness.log.
+ --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.
Incremental mode is the default if you have a lintian.log;
otherwise, it's full.
@@ -57,6 +60,7 @@ my %opthash = (
'f' => \$opt{'full-mode'},
'r' => \$opt{'reports-only'},
'dry-run' => \$opt{'dry-run'},
+ 'to-stdout' => \$opt{'to-stdout'},
'help|h' => \&usage,
);
@@ -116,6 +120,7 @@ unless ($opt{'dry-run'}) {
open(LOG, '>', $log_file)
or die "cannot open log file $log_file for writing: $!";
} else {
+ $opt{'to-stdout'} = 0;
open LOG, '>&', \*STDOUT
or die "Cannot open log file <stdout> for writing: $!";
Log('Running in dry-run mode');
@@ -372,6 +377,7 @@ exit 0;
sub Log {
print LOG $_[0],"\n";
+ print $_[0], "\n" if $opt{'to-stdout'};
}
sub run {
--
Debian package checker
Reply to: