The following commit has been merged in the master branch:
commit a51f15d808c4391fcdfa13bdd096ddfbec63e7c1
Author: Niels Thykier <[email protected]>
Date: Tue Jan 29 10:54:38 2013 +0100
lintian: Set IPCRUNDEBUG to none
When loading IPC::Run in frontend/lintian, set IPCRUNDEBUG to "none"
to disable IPC::Run debugging. We cannot rely on L::Command to do it
for us as _guess_version is run way too early.
At the same time, add an "unless exists" clause to the setting of
IPCRUNDEBUG. This allows anyone interested to get the IPC::Run debug
information.
Signed-off-by: Niels Thykier <[email protected]>
diff --git a/frontend/lintian b/frontend/lintian
index 416bbff..bd878f3 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1596,6 +1596,9 @@ sub _guess_version {
if ( -d "$rootdir/.git" ) {
# Lets try git
eval {
+ # Disabling IPC::Run::Debug saves tons of useless calls.
+ $ENV{'IPCRUNDEBUG'} = 'none'
+ unless exists $ENV{'IPCRUNDEBUG'};
require IPC::Run;
IPC::Run::run (['git', "--git-dir=$rootdir/.git", 'describe'],
\undef, \$guess);
chomp $guess;
diff --git a/lib/Lintian/Command.pm b/lib/Lintian/Command.pm
index 1228bd8..2bd2fc9 100644
--- a/lib/Lintian/Command.pm
+++ b/lib/Lintian/Command.pm
@@ -22,7 +22,8 @@ use warnings;
BEGIN {
# Disabling IPC::Run::Debug saves tons of useless calls.
- $ENV{'IPCRUNDEBUG'} = 'none';
+ $ENV{'IPCRUNDEBUG'} = 'none'
+ unless exists $ENV{'IPCRUNDEBUG'};
}
use Exporter qw(import);
--
Debian package checker
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]