diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-11-18 22:27:15 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-11-28 20:09:06 +0100 |
commit | 5a37c1bee7e05f0db00a2b341490f41323b22aa9 (patch) | |
tree | ed0278af2fcf2fae4986ee5a0dd7f5ac1b29471b /eclass | |
parent | c4af6bce0a667c845d3c1731ddf56f30174b684b (diff) | |
download | gentoo-5a37c1bee7e05f0db00a2b341490f41323b22aa9.tar.gz gentoo-5a37c1bee7e05f0db00a2b341490f41323b22aa9.tar.xz |
python-r1.eclass: Ban python_parallel_foreach_impl in EAPI 6
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-r1.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index d3b4f1d500f..1531442caff 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -526,6 +526,8 @@ python_foreach_impl() { python_parallel_foreach_impl() { debug-print-function ${FUNCNAME} "${@}" + [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}" + if [[ ! ${_PYTHON_PARALLEL_WARNED} ]]; then eqawarn "python_parallel_foreach_impl() is no longer meaningful. All runs" eqawarn "are non-parallel now. Please replace the call with python_foreach_impl." |