summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-04-28 04:36:08 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-05-01 04:14:39 +1000
commit1f5de2a638d78d1d5b436612a5581c78223f5815 (patch)
tree6d5a8bc652d6bb100945fa3c40787fe5d97d504f
parentdev-ml/camlp5: propagate ~alpha to newest versions (diff)
downloadgentoo-1f5de2a638d78d1d5b436612a5581c78223f5815.tar.gz
gentoo-1f5de2a638d78d1d5b436612a5581c78223f5815.tar.bz2
gentoo-1f5de2a638d78d1d5b436612a5581c78223f5815.zip
kde5.eclass: improve handling of nls USE flag
Linguas was being removed unconditionally on packages without an nls USE flag.
-rw-r--r--eclass/kde5.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 3b454efe4874..4d0b2a9351e4 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