diff options
author | Niels Thykier <niels@thykier.net> | 2017-06-26 07:35:18 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-06-26 07:39:49 +0000 |
commit | ee8fd59af61fa4739cdd536ecbb492cc8520df40 (patch) | |
tree | 4e2211bb3a4290bcc0d1bc8ae8bf053257897eaf /dh | |
parent | a157c078b721015c844e27a9f7b5201b6dd206cc (diff) | |
download | debhelper-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-x | dh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |