1 |
commit: ee7c14f190336bedc2648a26fceb137fc5ead728 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Mar 2 01:40:00 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 2 02:16:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ee7c14f1 |
7 |
|
8 |
kde5.eclass: Don't delete po/*.po files, only when not in LINGUAS |
9 |
|
10 |
eclass/kde5.eclass | 8 ++++---- |
11 |
1 file changed, 4 insertions(+), 4 deletions(-) |
12 |
|
13 |
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
14 |
index 10ae0dd..b065315 100644 |
15 |
--- a/eclass/kde5.eclass |
16 |
+++ b/eclass/kde5.eclass |
17 |
@@ -467,13 +467,13 @@ kde5_src_prepare() { |
18 |
if [[ -d po ]] ; then |
19 |
pushd po > /dev/null || die |
20 |
for lang in *; do |
21 |
- if ! has ${lang} ${LINGUAS} ; then |
22 |
- if [[ ${lang} != CMakeLists.txt ]] ; then |
23 |
- rm -rf ${lang} |
24 |
- fi |
25 |
+ if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then |
26 |
+ rm -r ${lang} || die |
27 |
if [[ -e CMakeLists.txt ]] ; then |
28 |
cmake_comment_add_subdirectory ${lang} |
29 |
fi |
30 |
+ elif ! has ${lang/.po/} ${LINGUAS} ; then |
31 |
+ rm ${lang} || die |
32 |
fi |
33 |
done |
34 |
popd > /dev/null || die |