1 |
commit: 05e71d17c90c2020f0b98c24eb0de46039fba181 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 09:30:42 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 10:41:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e71d17 |
7 |
|
8 |
check-reqs.eclass: Ban obsolete functions in newer EAPIs |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
|
12 |
eclass/check-reqs.eclass | 2 ++ |
13 |
1 file changed, 2 insertions(+) |
14 |
|
15 |
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass |
16 |
index 204bcc3..e16e7c4 100644 |
17 |
--- a/eclass/check-reqs.eclass |
18 |
+++ b/eclass/check-reqs.eclass |
19 |
@@ -75,6 +75,8 @@ esac |
20 |
check_reqs() { |
21 |
debug-print-function ${FUNCNAME} "$@" |
22 |
|
23 |
+ [[ ${EAPI:-0} == [012345] ]] || die "${FUNCNAME} is banned in EAPI > 5" |
24 |
+ |
25 |
echo |
26 |
eqawarn "Package calling old ${FUNCNAME} function." |
27 |
eqawarn "Please file a bug against the package." |