Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 24 Aug 2022 04:57:09
Message-Id: 1661316879.11c63a0b04fa10ce47d1bebc6254c90be7d11dfd.sam@gentoo
1 commit: 11c63a0b04fa10ce47d1bebc6254c90be7d11dfd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 16 23:45:51 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 04:54:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c63a0b
7
8 python-any-r1.eclass: localise 'i' in python_setup
9
10 Reported-by: Kerin Millar <kfm <AT> plushkava.net>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 eclass/python-any-r1.eclass | 1 +
14 1 file changed, 1 insertion(+)
15
16 diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
17 index fc66434cc6bf..f1f54358000c 100644
18 --- a/eclass/python-any-r1.eclass
19 +++ b/eclass/python-any-r1.eclass
20 @@ -317,6 +317,7 @@ python_setup() {
21
22 # fallback to the best installed impl.
23 # (reverse iteration over _PYTHON_SUPPORTED_IMPLS)
24 + local i
25 for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do
26 local impl=${_PYTHON_SUPPORTED_IMPLS[i]}
27 # avoid checking EPYTHON twice