commit:     da756fb6a294aef0daacd2917e2fdd388b95d58d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 21:50:57 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 22 09:00:12 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da756fb6

distutils-r1.eclass: Make pypy/share QA error fatal in EAPI 6

 eclass/distutils-r1.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 47b09b0..e632202 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -563,7 +563,9 @@ distutils-r1_python_install() {
                fi
        done
        if [[ -d ${root}/usr/$(get_libdir)/pypy/share ]]; then
-               eqawarn "Package installs 'share' in PyPy prefix, see bug 
#465546."
+               local cmd=die
+               [[ ${EAPI} == [45] ]] && cmd=eqawarn
+               "${cmd}" "Package installs 'share' in PyPy prefix, see bug 
#465546."
        fi
 
        if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then

Reply via email to