From 1f5de2a638d78d1d5b436612a5581c78223f5815 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Thu, 28 Apr 2016 04:36:08 +1000 Subject: 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 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 -- cgit v1.2.3-65-gdbad