[lintian] 01/01: r/harness: Remove reference to obsolete config variable
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit d7380275a567c10478440f7baddc3f36f68da0c2
Author: Niels Thykier <niels@thykier.net>
Date: Wed Oct 8 22:04:20 2014 +0200
r/harness: Remove reference to obsolete config variable
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/harness | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/reporting/harness b/reporting/harness
index 984e675..8443403 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -99,7 +99,7 @@ die "Cannot use other modes with reports only.\n"
require './config'; ## no critic (Modules::RequireBarewordIncludes)
use vars qw($LINTIAN_ROOT $LINTIAN_LAB $LINTIAN_ARCHIVEDIR $LINTIAN_DIST
$LINTIAN_ARCH @EXTRA_LINTIAN_OPTIONS
- $LOG_DIR $statistics_file
+ $LOG_DIR
$HTML_DIR $HTML_TMP_DIR
$LINTIAN_AREA $HARNESS_STATE_DIR);
@@ -448,10 +448,10 @@ spawn(\%html_reports_opts, [$html_reports_cmd, $lintian_log])
Log('');
# rotate the statistics file updated by $html_reports_cmd
-if (!$opt{'dry-run'} && -f $statistics_file) {
+if (!$opt{'dry-run'} && -f "$HARNESS_STATE_DIR/statistics") {
my $date = time2str('%Y%m%d', time());
my $dest = "$LOG_DIR/stats/statistics-${date}";
- system('cp', $statistics_file, $dest) == 0
+ system('cp', "$HARNESS_STATE_DIR/statistics", $dest) == 0
or Log('warning: could not rotate the statistics file');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: