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

Uncovered by dev-libs/kreport-3.0.0.
This commit is contained in:
Andreas Sturmlechner
2016-10-09 22:53:14 +02:00
committed by Michael Palimaka
parent a881ea37f6
commit cbdfd560b7

View 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