summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Debian/Debhelper/Dh_Lib.pm4
-rw-r--r--debian/changelog1
2 files changed, 5 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);
diff --git a/debian/changelog b/debian/changelog
index 72f8f3d..13a755d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ debhelper (8.9.7) UNRELEASED; urgency=low
for the binary target when all packages being acted on are indep.
* debhelper no longer build-depends on man-db or file, to ease bootstrapping.
* Remove obsolete versioned dependency on perl-base.
+ * Avoid writing debhelper log files in no-act mode. Closes: #640586
-- Joey Hess <joeyh@debian.org> Mon, 29 Aug 2011 20:18:01 -0400