summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-06-26 07:35:18 +0000
committerNiels Thykier <niels@thykier.net>2017-06-26 07:39:49 +0000
commitee8fd59af61fa4739cdd536ecbb492cc8520df40 (patch)
tree4e2211bb3a4290bcc0d1bc8ae8bf053257897eaf /dh
parenta157c078b721015c844e27a9f7b5201b6dd206cc (diff)
downloaddebhelper-ee8fd59af61fa4739cdd536ecbb492cc8520df40.tar.gz
Avoid fork+exec for rm -f and ln -s in non-deprecated tools
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-xdh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dh b/dh
index ee8c6cfc..2f63a96e 100755
--- a/dh
+++ b/dh
@@ -851,7 +851,10 @@ sub run_override {
# Discard any override log files before calling the override
# target
- complex_doit("rm","-f","debian/*.debhelper.log") if not compat(9);
+ if (not compat(9)) {
+ my @files = glob('debian/*.debhelper.log');
+ rm_files(@files) if @files;
+ }
# This passes the options through to commands called
# inside the target.
$ENV{DH_INTERNAL_OPTIONS}=join("\x1e", @options);