[debhelper-devel] [debhelper] 01/01: dh_auto_install: Avoid unnecessary stat of d/<pkg> dirs
Niels Thykier
nthykier at moszumanska.debian.org
Wed Apr 12 10:16:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit 9516f39e1c1ee00c7b98bb56c53ac6cbc7109323
Author: Niels Thykier <niels at thykier.net>
Date: Wed Apr 12 10:13:36 2017 +0000
dh_auto_install: Avoid unnecessary stat of d/<pkg> dirs
install_dir does a eqv. test now so there is no reason to repeat it in
dh_auto_install. Also, bulking the directories into one call will
ensure we only do one fork+exec.
Signed-off-by: Niels Thykier <niels at thykier.net>
---
dh_auto_install | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/dh_auto_install b/dh_auto_install
index 9baab66..3463d53 100755
--- a/dh_auto_install
+++ b/dh_auto_install
@@ -81,12 +81,8 @@ if (!$destdir) {
}
$destdir = File::Spec->rel2abs($destdir, cwd());
-foreach my $package (@{$dh{DOPACKAGES}}) {
- my $tmp=tmpdir($package);
- if (! -e $tmp) {
- install_dir($tmp);
- }
-}
+# Ensure that all debian/<pkg> directories exist
+install_dir(map { tmpdir($_) } @{$dh{DOPACKAGES}});
buildsystems_do("install", $destdir);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list