From dbdad391cc62fc92f54d8f9eab1f4bc68c1073cb Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 2 Oct 2016 20:11:34 +0000 Subject: 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 --- dh_installdocs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dh_installdocs') diff --git a/dh_installdocs b/dh_installdocs index 935d7240..9c82b5b4 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -325,9 +325,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { closedir(DEB); if (%doc_ids) { - if (! -d "$tmp/usr/share/doc-base/") { - install_dir("$tmp/usr/share/doc-base/"); - } + install_dir("$tmp/usr/share/doc-base/"); } # check for duplicate document ids my %used_doc_ids; -- cgit v1.2.3