Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:python-eapi6 commit in: eclass/
Date: Fri, 27 Nov 2015 13:17:16
Message-Id: 1448629540.454fde9b8fa191e7fe3cafe7988e32a58244d545.mgorny@gentoo
1 commit: 454fde9b8fa191e7fe3cafe7988e32a58244d545
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 18 21:27:15 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 27 13:05:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=454fde9b
7
8 python-r1.eclass: Ban python_parallel_foreach_impl in EAPI 6
9
10 eclass/python-r1.eclass | 2 ++
11 1 file changed, 2 insertions(+)
12
13 diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
14 index d3b4f1d..1531442 100644
15 --- a/eclass/python-r1.eclass
16 +++ b/eclass/python-r1.eclass
17 @@ -526,6 +526,8 @@ python_foreach_impl() {
18 python_parallel_foreach_impl() {
19 debug-print-function ${FUNCNAME} "${@}"
20
21 + [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}"
22 +
23 if [[ ! ${_PYTHON_PARALLEL_WARNED} ]]; then
24 eqawarn "python_parallel_foreach_impl() is no longer meaningful. All runs"
25 eqawarn "are non-parallel now. Please replace the call with python_foreach_impl."