diff options
author | Niels Thykier <niels@thykier.net> | 2018-10-14 07:50:57 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-10-14 08:05:20 +0000 |
commit | 216ee4a34b9fbf14081215218e01b900ae6ad200 (patch) | |
tree | 82644b79cc9f606876a0576da265165ef533198a /dh_clistrip | |
parent | 5240c93db2eb12551d91263a7db1e505303f82d3 (diff) |
dh_*: Optimize out some fork+exec calls
Replace some "doit" calls with debhelper functions that emulate the
same behaviour without fork+exec. Furthermore, defer the creation of
the "DEBIAN" directory in dh_makeclilibs until we are sure we need it.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_clistrip')
-rwxr-xr-x | dh_clistrip | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dh_clistrip b/dh_clistrip index 85afe68..635e9b8 100755 --- a/dh_clistrip +++ b/dh_clistrip @@ -80,14 +80,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) { verbose_print("debug_dir: $debug_dir"); $debug_dir = $pwd . "/debian/$debug_pkg/" . $debug_dir; verbose_print("debug_dir: $debug_dir"); - if (! -d $debug_dir) { - doit("install", "-d", $debug_dir); - } + install_dir($debug_dir); verbose_print("moving $file to $debug_dir"); doit("mv", $file, $debug_dir); } else { verbose_print("deleting $file"); - doit("rm", $file); + rm_files($file); } }, $tmp); } |