1 |
commit: b56282f14d445ef7a9bed48288d81ab22064890e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 6 15:53:34 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 9 19:29:33 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b56282f1 |
7 |
|
8 |
python-r1.eclass: Mark eclass-generated variables read-only |
9 |
|
10 |
eclass/python-r1.eclass | 5 +++-- |
11 |
1 file changed, 3 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass |
14 |
index 8c58e31..4b9c6f3 100644 |
15 |
--- a/eclass/python-r1.eclass |
16 |
+++ b/eclass/python-r1.eclass |
17 |
@@ -216,8 +216,8 @@ _python_set_globals() { |
18 |
optflags+=,${flags_st[@]/%/(-)} |
19 |
|
20 |
IUSE=${flags[*]} |
21 |
- PYTHON_REQUIRED_USE="|| ( ${flags[*]} )" |
22 |
- PYTHON_USEDEP=${optflags// /,} |
23 |
+ declare -g -r PYTHON_REQUIRED_USE="|| ( ${flags[*]} )" |
24 |
+ declare -g -r PYTHON_USEDEP=${optflags// /,} |
25 |
|
26 |
# 1) well, python-exec would suffice as an RDEP |
27 |
# but no point in making this overcomplex, BDEP doesn't hurt anyone |
28 |
@@ -232,6 +232,7 @@ _python_set_globals() { |
29 |
else |
30 |
PYTHON_DEPS+="dev-lang/python-exec:2[${PYTHON_USEDEP}]" |
31 |
fi |
32 |
+ readonly PYTHON_DEPS |
33 |
} |
34 |
_python_set_globals |
35 |
unset -f _python_set_globals |