summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-12-06 18:24:55 +0100
committerMichał Górny <mgorny@gentoo.org>2015-12-09 21:41:16 +0100
commitfafd13b912c0e2579901a84f9ded32dc316c87f6 (patch)
tree418791155e7d7d640ed571d2a8093ae458c5cb15 /eclass/python-single-r1.eclass
parentpython-single-r1.eclass: Unset global-setting function after use (diff)
downloadgentoo-fafd13b912c0e2579901a84f9ded32dc316c87f6.tar.gz
gentoo-fafd13b912c0e2579901a84f9ded32dc316c87f6.tar.bz2
gentoo-fafd13b912c0e2579901a84f9ded32dc316c87f6.zip
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.
Diffstat (limited to 'eclass/python-single-r1.eclass')
-rw-r--r--eclass/python-single-r1.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
index a89926dbf51b..8021501feb20 100644
--- a/eclass/python-single-r1.eclass
+++ b/eclass/python-single-r1.eclass
@@ -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} )" )