summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-09-09 17:22:11 +0200
committerUlrich Müller <ulm@gentoo.org>2020-09-12 18:03:00 +0200
commit7cdded69ae894fc68748cf708037caddbbf9d6c5 (patch)
tree7a8a43e9a16e53874fe2386745c2a3a0c878e439 /eclass
parentwrapper.eclass: Do not use emktemp. (diff)
downloadgentoo-7cdded69ae894fc68748cf708037caddbbf9d6c5.tar.gz
gentoo-7cdded69ae894fc68748cf708037caddbbf9d6c5.tar.bz2
gentoo-7cdded69ae894fc68748cf708037caddbbf9d6c5.zip
l10n.eclass: Add conditional to prevent multiple inclusion.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/l10n.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/l10n.eclass b/eclass/l10n.eclass
index 0b2d287afa7f..73d54ec22334 100644
--- a/eclass/l10n.eclass
+++ b/eclass/l10n.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: l10n.eclass
@@ -14,6 +14,9 @@
# determining the cross-section between the user's set LINGUAS and what
# is offered by the package.
+if [[ -z ${_L10N_ECLASS} ]]; then
+_L10N_ECLASS=1
+
# @ECLASS-VARIABLE: PLOCALES
# @DEFAULT_UNSET
# @DESCRIPTION:
@@ -120,3 +123,5 @@ l10n_get_locales() {
fi
printf "%s" "${locs}"
}
+
+fi