From 76ef1cbd64829ee4a5156a5fc4b887bcba6b974f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 2 Nov 2010 22:48:01 -0400 Subject: dh: Inhibit logging for commands run inside override targets Note that only the overridden command is inhibited. I wanted to avoid a behavior change if a rules file runs other debhelper commands inside the target, and relies on the logging preventing them being run later on in the sequence. --- Debian/Debhelper/Dh_Lib.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Debian/Debhelper/Dh_Lib.pm') diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 3c23e092..fb83480b 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -125,6 +125,8 @@ sub write_log { my $cmd=shift; my @packages=@_; + return if defined $ENV{DH_INHIBIT_LOG} && $cmd eq $ENV{DH_INHIBIT_LOG}; + foreach my $package (@packages) { my $ext=pkgext($package); my $log="debian/${ext}debhelper.log"; -- cgit v1.2.3