Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 08/13] python-single-r1.eclass: Mark eclass-generated variables read-only
Date: Sun, 06 Dec 2015 19:07:00
Message-Id: 1449428612-20538-9-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] python-r1 suite clean up & impl reorder by "Michał Górny"
1 ---
2 eclass/python-single-r1.eclass | 3 ++-
3 1 file changed, 2 insertions(+), 1 deletion(-)
4
5 diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
6 index 8021501..1582295 100644
7 --- a/eclass/python-single-r1.eclass
8 +++ b/eclass/python-single-r1.eclass
9 @@ -238,7 +238,7 @@ _python_single_set_globals() {
10 PYTHON_DEPS+="python_single_target_${i}? ( ${PYTHON_PKG_DEP} ) "
11 done
12 fi
13 - PYTHON_USEDEP=${optflags// /,}
14 + declare -g -r PYTHON_USEDEP=${optflags// /,}
15
16 # 1) well, python-exec would suffice as an RDEP
17 # but no point in making this overcomplex, BDEP doesn't hurt anyone
18 @@ -253,6 +253,7 @@ _python_single_set_globals() {
19 else
20 PYTHON_DEPS+="dev-lang/python-exec:2[${PYTHON_USEDEP}]"
21 fi
22 + readonly PYTHON_DEPS PYTHON_REQUIRED_USE
23 }
24 _python_single_set_globals
25 unset -f _python_single_set_globals
26 --
27 2.6.3