diff options
author | Michael Palimaka <kensington@gentoo.org> | 2016-04-28 04:36:08 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-05-01 04:14:39 +1000 |
commit | 1f5de2a638d78d1d5b436612a5581c78223f5815 (patch) | |
tree | 6d5a8bc652d6bb100945fa3c40787fe5d97d504f /eclass | |
parent | e95f84c2e0cdf89b1b46206f7ba8a4130c2bb341 (diff) | |
download | gentoo-1f5de2a638d78d1d5b436612a5581c78223f5815.tar.gz gentoo-1f5de2a638d78d1d5b436612a5581c78223f5815.tar.xz |
kde5.eclass: improve handling of nls USE flag
Linguas was being removed unconditionally on packages without an nls USE flag.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde5.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 3b454efe487..4d0b2a9351e 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 |