python-single-r1.eclass: python_gen_cond_dep(), rename local PYTHON_USEDEP

Rename local PYTHON_USEDEP variable to avoid collisions with read-only
global variable.
This commit is contained in:
Michał Górny
2015-12-09 21:41:16 +01:00
parent 364a366877
commit fafd13b912
+2 -2
View File
@@ -388,8 +388,8 @@ python_gen_cond_dep() {
# (since python_gen_usedep() will not return ${PYTHON_USEDEP}
# the code is run at most once)
if [[ ${dep} == *'${PYTHON_USEDEP}'* ]]; then
local PYTHON_USEDEP=$(python_gen_usedep "${@}")
dep=${dep//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}}
local usedep=$(python_gen_usedep "${@}")
dep=${dep//\$\{PYTHON_USEDEP\}/${usedep}}
fi
matches+=( "python_single_target_${impl}? ( ${dep} )" )