[debhelper-devel] [debhelper] 01/01: dh: No stamp file with --no-act

Niels Thykier nthykier at moszumanska.debian.org
Fri Jan 22 19:45:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 56591da4ff75e6c02834f2dc2b70b72c2741b664
Author: Niels Thykier <niels at thykier.net>
Date:   Fri Jan 22 19:45:22 2016 +0000

    dh: No stamp file with --no-act
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog | 1 +
 dh               | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fa8ca20..1b98f4a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ debhelper (9.20160116) UNRELEASED; urgency=medium
 
   * Remove dh_suidregister and related autoscripts.  No package
     (that can be built in unstable) invokes this tool.
+  * dh: Do not create stamp files when running with --no-act.
 
  -- Niels Thykier <niels at thykier.net>  Sat, 16 Jan 2016 13:23:00 +0000
 
diff --git a/dh b/dh
index b05efde..f2a2a60 100755
--- a/dh
+++ b/dh
@@ -715,6 +715,7 @@ foreach my $i (0..$stoppoint) {
 	}
 	if (my $stamp_file = stamp_target($command)) {
 		my @contents;
+		next if $dh{NO_ACT};
 		open(my $fd, '+>>', $stamp_file) or error("open($stamp_file, rw) failed: $!");
 		# Seek to the beginning
 		seek($fd, 0, 0) or error("seek($stamp_file) failed: $!");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list