summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/kde5.eclass')
-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