summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-17 00:45:51 +0100
committerSam James <sam@gentoo.org>2022-08-24 05:54:39 +0100
commit11c63a0b04fa10ce47d1bebc6254c90be7d11dfd (patch)
tree5d82ac50d3d54a673170ad7441a1eec1ac0ff6be /eclass
parentpython-r1.eclass: localise 'i' in python_setup (diff)
downloadgentoo-11c63a0b04fa10ce47d1bebc6254c90be7d11dfd.tar.gz
gentoo-11c63a0b04fa10ce47d1bebc6254c90be7d11dfd.tar.bz2
gentoo-11c63a0b04fa10ce47d1bebc6254c90be7d11dfd.zip
python-any-r1.eclass: localise 'i' in python_setup
Reported-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python-any-r1.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index fc66434cc6bf..f1f54358000c 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -317,6 +317,7 @@ python_setup() {
# fallback to the best installed impl.
# (reverse iteration over _PYTHON_SUPPORTED_IMPLS)
+ local i
for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do
local impl=${_PYTHON_SUPPORTED_IMPLS[i]}
# avoid checking EPYTHON twice