python-single-r1.eclass: python_gen_cond_dep(), rename local PYTHON_USEDEP
authorMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 17:24:55 +0000 (18:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 20:41:16 +0000 (21:41 +0100)
Rename local PYTHON_USEDEP variable to avoid collisions with read-only
global variable.

eclass/python-single-r1.eclass

index a89926dbf51bb59cf80955b1ff33f922c0c2d4bc..8021501feb2012c53f0733386f795eb3a9462c43 100644 (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} )" )