path: root/Debian
diff options
authorJoey Hess <>2010-11-02 22:48:01 -0400
committerJoey Hess <>2010-11-02 22:51:33 -0400
commit76ef1cbd64829ee4a5156a5fc4b887bcba6b974f (patch)
treecbc302f73adbb037838d9c3923db194494a61d07 /Debian
parente336ac5559c74e6b7b6282a9825963346dbd414b (diff)
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.
Diffstat (limited to 'Debian')
1 files changed, 2 insertions, 0 deletions
diff --git a/Debian/Debhelper/ b/Debian/Debhelper/
index 3c23e09..fb83480 100644
--- a/Debian/Debhelper/
+++ b/Debian/Debhelper/
@@ -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";