commit:     98fafe289b579c1d7452766b1b94b55c865beaab
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 22:00:48 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 25 11:56:52 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98fafe28

distutils-r1.eclass: Make default _all impl call warning fatal in EAPI 6

 eclass/distutils-r1.eclass | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 551bc09..b249985 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -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
 }
 

Reply via email to