summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2016-01-22 19:45:22 +0000
committerNiels Thykier <niels@thykier.net>2016-01-22 19:45:22 +0000
commit56591da4ff75e6c02834f2dc2b70b72c2741b664 (patch)
tree2a6e4b3f2807ccbbf67e8e17072f19112a2c8a33 /dh
parente35bca37668e6e536ceabb64a05faff38666515f (diff)
downloaddebhelper-56591da4ff75e6c02834f2dc2b70b72c2741b664.tar.gz
dh: No stamp file with --no-act
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-xdh1
1 files changed, 1 insertions, 0 deletions
diff --git a/dh b/dh
index b05efdef..f2a2a60c 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: $!");