[lintian] 01/01: c/r-lintian-harness: Log whether TMPDIR is set
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 2ab61e350ce803f02eeb46c8755a4f1d3ef78741
Author: Niels Thykier <niels@thykier.net>
Date: Sat Mar 14 07:53:03 2015 +0100
c/r-lintian-harness: Log whether TMPDIR is set
Signed-off-by: Niels Thykier <niels@thykier.net>
---
commands/reporting-lintian-harness | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/commands/reporting-lintian-harness b/commands/reporting-lintian-harness
index 8006b9d..b830205 100755
--- a/commands/reporting-lintian-harness
+++ b/commands/reporting-lintian-harness
@@ -162,8 +162,12 @@ sub prepare_lintian_environment_and_cmdline {
for my $key (keys(%ENV)) {
delete($ENV{$key}) if $key =~ m/^LINTIAN_/;
}
- $ENV{'TMPDIR'} = $OPT{'lintian-scratch-space'}
- if $OPT{'lintian-scratch-space'};
+ if ( $OPT{'lintian-scratch-space'} ) {
+ $ENV{'TMPDIR'} = $OPT{'lintian-scratch-space'};
+ log_msg("Setting TMPDIR to $ENV{'TMPDIR'}");
+ } else {
+ log_msg('Leaving TMPDIR unset (no --lintian-scratch-space');
+ }
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: