commit:     843ad4b4b9878d5d10b4e1be2229960100e482ce
Author:     Jan Chren (rindeal) <dev.rindeal <AT> gmail <DOT> com>
AuthorDate: Tue Oct  4 10:56:29 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 16:40:47 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=843ad4b4

einstalldocs: check whether default docs are indeed files

X-Gentoo-Bug: 596102
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=596102

 bin/phase-helpers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 995156a..d55165c 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -958,7 +958,7 @@ if ___eapi_has_einstalldocs; then
                                local d
                                for d in README* ChangeLog AUTHORS NEWS TODO 
CHANGES \
                                                THANKS BUGS FAQ CREDITS 
CHANGELOG ; do
-                                       [[ -s ${d} ]] && docinto / && dodoc 
"${d}"
+                                       [[ -f ${d} && -s ${d} ]] && docinto / 
&& dodoc "${d}"
                                done
                        elif [[ $(declare -p DOCS) == "declare -a"* ]] ; then
                                [[ ${DOCS[@]} ]] && docinto / && dodoc -r 
"${DOCS[@]}"

Reply via email to