commit:     b392d99098a4415f5e9207251cdeedd7764f51df
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  6 16:52:38 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec  6 16:52:38 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b392d990

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

Rename local PYTHON_USEDEP variable to avoid collisions with read-only
global variable.

 eclass/python-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 9eb2cf0..4b9c6f3 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -391,8 +391,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} )" 
)

Reply via email to