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

index 1cf2a499d2ad790ef8693acdf7a26529b1ae351a..551bc094e32150f26baa904b4bf33b3b2aafe41d 100644 (file)
@@ -693,6 +693,8 @@ _distutils-r1_run_foreach_impl() {
        debug-print-function ${FUNCNAME} "${@}"
 
        if [[ ${DISTUTILS_NO_PARALLEL_BUILD} ]]; then
+               [[ ${EAPI} == [45] ]] || die "DISTUTILS_NO_PARALLEL_BUILD is banned in EAPI ${EAPI}"
+
                eqawarn "DISTUTILS_NO_PARALLEL_BUILD is no longer meaningful. Now all builds"
                eqawarn "are non-parallel. Please remove it from the ebuild."