commit: cbdfd560b7178ac52b1c04baeed6e5a88166f445
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: Wed Nov 9 15:23:55 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbdfd560
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 e2a42e0..47e3d46 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -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