summaryrefslogtreecommitdiff
path: root/dh_md5sums
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_md5sums
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_md5sums')
-rwxr-xr-xdh_md5sums4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_md5sums b/dh_md5sums
index b91b2d65..344c9adf 100755
--- a/dh_md5sums
+++ b/dh_md5sums
@@ -82,7 +82,7 @@ on_pkgs_in_parallel {
q{perl -pe 'if (s@^\\\\@@) { s/\\\\\\\\/\\\\/g; }' > DEBIAN/md5sums) >/dev/null});
# If the file's empty, no reason to waste inodes on it.
if (-z "$tmp/DEBIAN/md5sums") {
- doit("rm","-f","$tmp/DEBIAN/md5sums");
+ rm_files("$tmp/DEBIAN/md5sums");
}
else {
reset_perm_and_owner('0644', "$tmp/DEBIAN/md5sums");
@@ -95,7 +95,7 @@ on_pkgs_in_parallel {
q{perl -pe 'if (s@^\\\\@@) { s/\\\\\\\\/\\\\/g; }' > DEBIAN/md5sums) >/dev/null});
# If the file's empty, no reason to waste inodes on it.
if (-z "${dbgsym_tmp}/DEBIAN/md5sums") {
- doit('rm', '-f', "${dbgsym_tmp}/DEBIAN/md5sums");
+ rm_files("${dbgsym_tmp}/DEBIAN/md5sums");
}
else {
reset_perm_and_owner('0644', "${dbgsym_tmp}/DEBIAN/md5sums");