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_installman | |
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_installman')
-rwxr-xr-x | dh_installman | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_installman b/dh_installman index 59514efc..ec55873b 100755 --- a/dh_installman +++ b/dh_installman @@ -229,8 +229,8 @@ on_selected_pkgs_in_parallel(\@all_packages, sub { } foreach my $sofile (@sofiles) { my $sodest = shift(@sodests); - doit "rm", "-f", $sofile; - doit "ln", "-sf", $sodest, $sofile; + rm_files($sofile); + make_symlink_raw_target($sodest, $sofile); } # Now utf-8 conversion. @@ -243,7 +243,7 @@ on_selected_pkgs_in_parallel(\@all_packages, sub { my ($tmp, $orig) = ($_.".new", $_); complex_doit "man --recode UTF-8 ./\Q$orig\E > \Q$tmp\E"; # recode uncompresses compressed pages - doit "rm", "-f", $orig if s/\.(gz|Z)$//; + rm_files($orig) if s/\.(gz|Z)$//; doit "mv", "-f", $tmp, $_; # Schedule a permission reset push(@files, "${File::Find::dir}/${_}"); |