aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Santiago M. Mola <coldwind@gentoo.org> 2008-09-22 20:58:27 +0200
committerAvatar David Leverton <levertond@googlemail.com> 2008-09-22 21:45:30 +0100
commit9a5de1a1916acd3be7765db8085441e29c384ac3 (patch)
tree5e74448e84819fdae59efd7ce382a596ad4b2460
parent7b693ec5174f1e1f81a91bc6e841c17351c1c077 (diff)
downloadpaludis-9a5de1a1916acd3be7765db8085441e29c384ac3.tar.gz
paludis-9a5de1a1916acd3be7765db8085441e29c384ac3.tar.xz
Prevent dohtml -r from failing with empty dirs during recursion.
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dohtml b/paludis/repositories/e/ebuild/utils/dohtml
index 920d9e8..ba3cbb8 100755
--- a/paludis/repositories/e/ebuild/utils/dohtml
+++ b/paludis/repositories/e/ebuild/utils/dohtml
@@ -107,6 +107,7 @@ install_file() {
elif [[ $recurse == 1 && -d ${path} ]] &&
! has "${bn}" ${disallowed_dirs}; then
for f in ${path}/*; do
+ [[ -e ${f} ]] || continue
pfx=${bn}
[[ -n ${prefix} ]] && pfx="${prefix}/${pfx}"
install_file "$(basename "${f}")" "${dn}" "${pfx}"