Skip to content

Commit

Permalink
python-single-r1.eclass: python_gen_cond_dep(), rename local PYTHON_U…
Browse files Browse the repository at this point in the history
…SEDEP

Rename local PYTHON_USEDEP variable to avoid collisions with read-only
global variable.
  • Loading branch information
mgorny committed Dec 9, 2015
1 parent 364a366 commit fafd13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/python-single-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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} )" )
Expand Down

0 comments on commit fafd13b

Please sign in to comment.