diff options
| author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-03-02 02:40:00 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-03-02 03:16:29 +0100 |
| commit | ee7c14f190336bedc2648a26fceb137fc5ead728 (patch) | |
| tree | 5203ca4650f4dc57fc036e8b841093b7fda39b57 /eclass/kde5.eclass | |
| parent | 574f419bdcee365eded0da7ac35960abe0bab35a (diff) | |
| download | kde-ee7c14f190336bedc2648a26fceb137fc5ead728.tar.gz kde-ee7c14f190336bedc2648a26fceb137fc5ead728.tar.bz2 kde-ee7c14f190336bedc2648a26fceb137fc5ead728.zip | |
kde5.eclass: Don't delete po/*.po files, only when not in LINGUAS
Diffstat (limited to 'eclass/kde5.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 10ae0ddb7b6..b0653154da7 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -467,13 +467,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 |
