1 |
commit: 33b41959ef0c39bba48a16bc23a270838fb8a57a |
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: Thu Nov 26 22:33:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33b41959 |
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." |