python*-r1.eclass: Replace non-portable use of 'declare -g'

Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported
by Arfrever.
This commit is contained in:
Michał Górny
2015-12-11 22:27:19 +01:00
parent e4c9400861
commit 44d3345d82
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ inherit toolchain-funcs
# @INTERNAL
# @DESCRIPTION:
# All supported Python implementations, most preferred last.
declare -g -r _PYTHON_ALL_IMPLS=(
readonly _PYTHON_ALL_IMPLS=(
python2_7
python3_3 python3_4 python3_5
pypy pypy3