commit:     5f612d0d8fcd6ba55cb1b5d572f60e875c0a21fc
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  6 17:24:55 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec  9 19:29:33 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f612d0d

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.

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

diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
index a89926d..8021501 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} )" )

Reply via email to