1 |
commit: 1f5de2a638d78d1d5b436612a5581c78223f5815 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 18:36:08 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 18:14:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f5de2a6 |
7 |
|
8 |
kde5.eclass: improve handling of nls USE flag |
9 |
|
10 |
Linguas was being removed unconditionally on packages without an nls USE flag. |
11 |
|
12 |
eclass/kde5.eclass | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
16 |
index 3b454ef..4d0b2a9 100644 |
17 |
--- a/eclass/kde5.eclass |
18 |
+++ b/eclass/kde5.eclass |
19 |
@@ -392,8 +392,8 @@ kde5_src_prepare() { |
20 |
fi |
21 |
|
22 |
# drop translations when nls is not wanted |
23 |
- if [[ -d po ]] && ! use_if_iuse nls ; then |
24 |
- rm -rf po || die |
25 |
+ if [[ -d po ]] && in_iuse nls && ! use nls ; then |
26 |
+ rm -r po || die |
27 |
fi |
28 |
|
29 |
# enable only the requested translations |