summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-17 00:45:14 +0100
committerSam James <sam@gentoo.org>2022-08-24 05:54:38 +0100
commit2594bfb030e5c613dea137cbbd60e8e4098990ff (patch)
tree11e6f1623abdf0893c89d0dc80e22321e4e63bc0
parentdev-libs/libcpuid: fix PkgMetadataXmlInvalidPkgRef (diff)
downloadgentoo-2594bfb030e5c613dea137cbbd60e8e4098990ff.tar.gz
gentoo-2594bfb030e5c613dea137cbbd60e8e4098990ff.tar.bz2
gentoo-2594bfb030e5c613dea137cbbd60e8e4098990ff.zip
python-r1.eclass: localise 'i' in python_setup
Reported-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/python-r1.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 2fd5c70120e9..caa37bc54ae2 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -729,7 +729,7 @@ python_setup() {
fi
# (reverse iteration -- newest impl first)
- local found
+ local found i
_python_verify_patterns "${@}"
for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do
local impl=${_PYTHON_SUPPORTED_IMPLS[i]}