distutils-r1.eclass: Make default _all impl call warning fatal in EAPI 6
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 22:00:48 +0000 (23:00 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
eclass/distutils-r1.eclass

index 551bc094e32150f26baa904b4bf33b3b2aafe41d..b249985a2a1c4a3dbe8c2fe3f8aeb06296a9e418 100644 (file)
@@ -731,7 +731,10 @@ distutils-r1_src_prepare() {
        fi
 
        if [[ ! ${_DISTUTILS_DEFAULT_CALLED} ]]; then
-               eqawarn "QA warning: python_prepare_all() didn't call distutils-r1_python_prepare_all"
+               local cmd=die
+               [[ ${EAPI} == [45] ]] && cmd=eqawarn
+
+               "${cmd}" "QA: python_prepare_all() didn't call distutils-r1_python_prepare_all"
        fi
 
        if declare -f python_prepare >/dev/null; then
@@ -802,7 +805,10 @@ distutils-r1_src_install() {
        fi
 
        if [[ ! ${_DISTUTILS_DEFAULT_CALLED} ]]; then
-               eqawarn "QA warning: python_install_all() didn't call distutils-r1_python_install_all"
+               local cmd=die
+               [[ ${EAPI} == [45] ]] && cmd=eqawarn
+
+               "${cmd}" "QA: python_install_all() didn't call distutils-r1_python_install_all"
        fi
 }