summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-09-05 19:30:18 -0400
committerJoey Hess <joey@kitenet.net>2011-09-05 19:30:18 -0400
commitf33df0747112c2663380b6bfb27f8610b34e0d2b (patch)
treefee6a3a785c436982832fad18e140ed36ebaa665 /Debian/Debhelper/Dh_Lib.pm
parent6dffd184b5a14b8322778d23a120ff519f9522b4 (diff)
Avoid writing debhelper log files in no-act mode. Closes: #640586
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 5a7c3e4..40c33e8 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -146,6 +146,8 @@ sub write_log {
my $cmd=shift;
my @packages=@_;
+ return if $dh{NO_ACT};
+
foreach my $package (@packages) {
my $log=logfile($package);
open(LOG, ">>", $log) || error("failed to write to ${log}: $!");
@@ -157,6 +159,8 @@ sub write_log {
sub commit_override_log {
my @packages=@_;
+ return if $dh{NO_ACT};
+
foreach my $package (@packages) {
my @log=map { remove_override($_) } load_log($package);
my $log=logfile($package);