diff options
author | Niels Thykier <niels@thykier.net> | 2016-10-02 20:11:34 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2016-10-02 20:11:37 +0000 |
commit | dbdad391cc62fc92f54d8f9eab1f4bc68c1073cb (patch) | |
tree | 3a9a8a913bbef2549e0b40b089cbb43179ab90a6 /dh_installchangelogs | |
parent | 56e7dc4f2a6b47007364ec7f4e3dee1eba2f21c8 (diff) | |
download | debhelper-dbdad391cc62fc92f54d8f9eab1f4bc68c1073cb.tar.gz |
Refactor install_dir usage to avoid the "if -d " tests
They were not needed in the first place (as "install -d" DTRT).
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-x | dh_installchangelogs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs index b5e26a7d..9f0563ea 100755 --- a/dh_installchangelogs +++ b/dh_installchangelogs @@ -199,9 +199,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { next unless -d "$tmp/usr/share/doc/$package"; } - if (! -d "$tmp/usr/share/doc/$package") { - install_dir("$tmp/usr/share/doc/$package"); - } + install_dir("$tmp/usr/share/doc/$package"); if (! $dh{NO_ACT}) { if (! install_binNMU_changelog($package, $changelog, $changelog_name)) { |