commit:     e7dcb0835c0fe8b1927d5d5c6f4a181d861e3e87
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 20 08:39:37 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 23 21:44:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7dcb083

python-r1.eclass: Ban python_gen_usedep in EAPI 8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/python-r1.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 539076b5f74..d464d3ef8f8 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -358,6 +358,7 @@ python_gen_usedep() {
        if [[ ${EBUILD_PHASE} == setup ]]; then
                eqawarn "python_gen_usedep() is deprecated. Please use 
python_gen_cond_dep instead."
        fi
+       [[ ${EAPI} == [67] ]] || die "${FUNCNAME} banned in EAPI ${EAPI}"
        _python_gen_usedep "${@}"
 }
 

Reply via email to