commit: 138a38b94b28c4e1f06949fe3ce3d780be6f237a 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: Thu Nov 19 15:13:35 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=138a38b9
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 6054f27..1f0b74a 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -729,7 +729,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 @@ -800,7 +803,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 }