1 |
On Fri, 20 May 2016 19:47:55 +0000 (UTC) |
2 |
"Johannes Huber" <johu@g.o> wrote: |
3 |
|
4 |
> commit: 548f4ee19c6b0fe0d5e87e84a5a82c421229e0ce |
5 |
> Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
6 |
> AuthorDate: Fri May 20 19:46:11 2016 +0000 |
7 |
> Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
8 |
> CommitDate: Fri May 20 19:47:15 2016 +0000 |
9 |
> URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=548f4ee1 |
10 |
> |
11 |
> kde5.eclass: install all translations when LINGUAS is undefined |
12 |
> |
13 |
> This mirrors the behaviour of the gettext autotools macros. |
14 |
> |
15 |
> Gentoo-bug: 581382 |
16 |
> |
17 |
> Signed-off-by: Johannes Huber <johu <AT> gentoo.org> |
18 |
> |
19 |
> eclass/kde5.eclass | 2 +- |
20 |
> 1 file changed, 1 insertion(+), 1 deletion(-) |
21 |
> |
22 |
> diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
23 |
> index 377d2c5..eaffb9e 100644 |
24 |
> --- a/eclass/kde5.eclass |
25 |
> +++ b/eclass/kde5.eclass |
26 |
> @@ -397,7 +397,7 @@ kde5_src_prepare() { |
27 |
> |
28 |
> # enable only the requested translations |
29 |
> # when required |
30 |
> - if [[ -d po ]] ; then |
31 |
> + if [[ -d po && -v LINGUAS ]] ; then |
32 |
> pushd po > /dev/null || die |
33 |
> for lang in *; do |
34 |
> if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then |
35 |
|
36 |
This doesn't really make any difference since per EAPI 6 all USE_EXPAND |
37 |
variables (incl. LINGUAS) are always defined. The only reason it seems |
38 |
to work for you is due to a Portage bug. |
39 |
|
40 |
-- |
41 |
Best regards, |
42 |
Michał Górny |
43 |
<http://dev.gentoo.org/~mgorny/> |