commit:     86bc7d59ec0c4b718ee7b3c7e62f8f05e61f747f
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun Oct  9 20:53:14 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Oct  9 20:53:14 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=86bc7d59

kde5.eclass: Take care of empty po directory shipped by upstream

Uncovered by dev-libs/kreport-3.0.0.

 eclass/kde5.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 45065af..52c432d 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -545,7 +545,7 @@ EOF
                                if [[ -e CMakeLists.txt ]] ; then
                                        cmake_comment_add_subdirectory ${lang}
                                fi
-                       elif ! has ${lang/.po/} ${LINGUAS} ; then
+                       elif [[ -f ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} 
; then
                                if [[ ${lang} != CMakeLists.txt && ${lang} != 
${PN}.pot ]] ; then
                                        rm ${lang} || die
                                fi

Reply via email to