diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index e2a42e044cd0d..47e3d4624efb1 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