Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 27/29] distutils-r1.eclass: Make default _all impl call warning fatal in EAPI 6
Date: Sun, 22 Nov 2015 20:06:12
Message-Id: 1448221870-17269-28-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] Clean-up & EAPI 6 support for python-r1 suite by "Michał Górny"
1 ---
2 eclass/distutils-r1.eclass | 10 ++++++++--
3 1 file changed, 8 insertions(+), 2 deletions(-)
4
5 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
6 index 6054f27..1f0b74a 100644
7 --- a/eclass/distutils-r1.eclass
8 +++ b/eclass/distutils-r1.eclass
9 @@ -729,7 +729,10 @@ distutils-r1_src_prepare() {
10 fi
11
12 if [[ ! ${_DISTUTILS_DEFAULT_CALLED} ]]; then
13 - eqawarn "QA warning: python_prepare_all() didn't call distutils-r1_python_prepare_all"
14 + local cmd=die
15 + [[ ${EAPI} == [45] ]] && cmd=eqawarn
16 +
17 + "${cmd}" "QA: python_prepare_all() didn't call distutils-r1_python_prepare_all"
18 fi
19
20 if declare -f python_prepare >/dev/null; then
21 @@ -800,7 +803,10 @@ distutils-r1_src_install() {
22 fi
23
24 if [[ ! ${_DISTUTILS_DEFAULT_CALLED} ]]; then
25 - eqawarn "QA warning: python_install_all() didn't call distutils-r1_python_install_all"
26 + local cmd=die
27 + [[ ${EAPI} == [45] ]] && cmd=eqawarn
28 +
29 + "${cmd}" "QA: python_install_all() didn't call distutils-r1_python_install_all"
30 fi
31 }
32
33 --
34 2.6.3