1 |
commit: 54ab0944122fbcfa00ad8c8aec97b166082462c3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 6 15:55:24 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 6 17:28:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54ab0944 |
7 |
|
8 |
python-single-r1.eclass: Mark eclass-generated variables read-only |
9 |
|
10 |
eclass/python-single-r1.eclass | 3 ++- |
11 |
1 file changed, 2 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass |
14 |
index 8021501..1582295 100644 |
15 |
--- a/eclass/python-single-r1.eclass |
16 |
+++ b/eclass/python-single-r1.eclass |
17 |
@@ -238,7 +238,7 @@ _python_single_set_globals() { |
18 |
PYTHON_DEPS+="python_single_target_${i}? ( ${PYTHON_PKG_DEP} ) " |
19 |
done |
20 |
fi |
21 |
- PYTHON_USEDEP=${optflags// /,} |
22 |
+ declare -g -r PYTHON_USEDEP=${optflags// /,} |
23 |
|
24 |
# 1) well, python-exec would suffice as an RDEP |
25 |
# but no point in making this overcomplex, BDEP doesn't hurt anyone |
26 |
@@ -253,6 +253,7 @@ _python_single_set_globals() { |
27 |
else |
28 |
PYTHON_DEPS+="dev-lang/python-exec:2[${PYTHON_USEDEP}]" |
29 |
fi |
30 |
+ readonly PYTHON_DEPS PYTHON_REQUIRED_USE |
31 |
} |
32 |
_python_single_set_globals |
33 |
unset -f _python_single_set_globals |