Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH 5/8] l10n.eclass: Add conditional to prevent multiple inclusion.
Date: Thu, 10 Sep 2020 19:10:48
Message-Id: 20200910190834.17560-6-ulm@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/8] Split off remaining functions from eutils.eclass by "Ulrich Müller"
1 Signed-off-by: Ulrich Müller <ulm@g.o>
2 ---
3 eclass/l10n.eclass | 7 ++++++-
4 1 file changed, 6 insertions(+), 1 deletion(-)
5
6 diff --git a/eclass/l10n.eclass b/eclass/l10n.eclass
7 index 0b2d287afa7f..73d54ec22334 100644
8 --- a/eclass/l10n.eclass
9 +++ b/eclass/l10n.eclass
10 @@ -1,4 +1,4 @@
11 -# Copyright 1999-2018 Gentoo Foundation
12 +# Copyright 1999-2020 Gentoo Authors
13 # Distributed under the terms of the GNU General Public License v2
14
15 # @ECLASS: l10n.eclass
16 @@ -14,6 +14,9 @@
17 # determining the cross-section between the user's set LINGUAS and what
18 # is offered by the package.
19
20 +if [[ -z ${_L10N_ECLASS} ]]; then
21 +_L10N_ECLASS=1
22 +
23 # @ECLASS-VARIABLE: PLOCALES
24 # @DEFAULT_UNSET
25 # @DESCRIPTION:
26 @@ -120,3 +123,5 @@ l10n_get_locales() {
27 fi
28 printf "%s" "${locs}"
29 }
30 +
31 +fi
32 --
33 2.28.0