diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde5.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index fd83a7109cb9..9356f3921f25 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -387,13 +387,13 @@ kde5_src_prepare() { if [[ -d po ]] ; then pushd po > /dev/null || die for lang in *; do - if ! has ${lang} ${LINGUAS} ; then - if [[ ${lang} != CMakeLists.txt ]] ; then - rm -rf ${lang} - fi + if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then + rm -r ${lang} || die if [[ -e CMakeLists.txt ]] ; then cmake_comment_add_subdirectory ${lang} fi + elif ! has ${lang/.po/} ${LINGUAS} ; then + rm ${lang} || die fi done popd > /dev/null || die |