kde5.eclass: Take care of empty po directory shipped by upstream
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 9 Oct 2016 20:53:14 +0000 (22:53 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 9 Nov 2016 15:23:55 +0000 (02:23 +1100)
Uncovered by dev-libs/kreport-3.0.0.

eclass/kde5.eclass

index e2a42e044cd0d93f34c9bb3d64b0ffd18025eeea..47e3d4624efb14626adc18fe8529db00ad17f4ad 100644 (file)
@@ -540,7 +540,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