diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-12-06 17:52:38 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-12-09 21:41:16 +0100 |
commit | 300f6e46c968da2b3594a0c3f99945cf34f29b6f (patch) | |
tree | 077f5d782fd1bc5f2274fa51cb611cb9e3b71a33 /eclass | |
parent | python-r1.eclass: Unset local functions after use (diff) | |
download | gentoo-300f6e46c968da2b3594a0c3f99945cf34f29b6f.tar.gz gentoo-300f6e46c968da2b3594a0c3f99945cf34f29b6f.tar.bz2 gentoo-300f6e46c968da2b3594a0c3f99945cf34f29b6f.zip |
python-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')
-rw-r--r-- | eclass/python-r1.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 22030b950d17..8c58e310547a 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -390,8 +390,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_targets_${impl}? ( ${dep} )" ) |