python-r1.eclass: Ban python_parallel_foreach_impl in EAPI 6
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 21:27:15 +0000 (22:27 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
eclass/python-r1.eclass

index d3b4f1d500f72de24b6cec2ec141eb60606aa115..1531442caff8ae123ff9f64e26591083ab30b37f 100644 (file)
@@ -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."