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