summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-07-19 22:27:44 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-08-03 13:13:52 +0200
commit222510b35283da977fc470e138444dbd2be8ed55 (patch)
treea890be824db6fef41ec03bb3254bfe5b6b3e1bb7 /eclass
parentcheck-reqs.eclass: Make check-reqs_prepare internal (diff)
downloadgentoo-222510b35283da977fc470e138444dbd2be8ed55.tar.gz
gentoo-222510b35283da977fc470e138444dbd2be8ed55.tar.bz2
gentoo-222510b35283da977fc470e138444dbd2be8ed55.zip
check-reqs.eclass: Make check-reqs_run internal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/check-reqs.eclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
index afdb7d83ee00..b22cca79047c 100644
--- a/eclass/check-reqs.eclass
+++ b/eclass/check-reqs.eclass
@@ -77,7 +77,7 @@ check-reqs_pkg_setup() {
debug-print-function ${FUNCNAME} "$@"
_check-reqs_prepare
- check-reqs_run
+ _check-reqs_run
check-reqs_output
}
@@ -122,6 +122,16 @@ _check-reqs_prepare() {
# @DESCRIPTION:
# Internal function that runs the check based on variable settings.
check-reqs_run() {
+ [[ ${EAPI} == [67] ]] ||
+ die "Internal function ${FUNCNAME} is not available in EAPI ${EAPI}."
+ _check-reqs_run "$@"
+}
+
+# @FUNCTION: _check-reqs_run
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function that runs the check based on variable settings.
+_check-reqs_run() {
debug-print-function ${FUNCNAME} "$@"
# some people are *censored*