diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-07-19 22:25:49 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-08-03 13:13:52 +0200 |
commit | 6d8423ac86df79002bf6b036f6265f6f9cb5aee2 (patch) | |
tree | 52e5e679fda0616dae5637549e118fd2e7d99f7a /eclass/check-reqs.eclass | |
parent | check-reqs.eclass: Drop obsolete check_reqs(), errored out for >3yrs (diff) | |
download | gentoo-6d8423ac86df79002bf6b036f6265f6f9cb5aee2.tar.gz gentoo-6d8423ac86df79002bf6b036f6265f6f9cb5aee2.tar.bz2 gentoo-6d8423ac86df79002bf6b036f6265f6f9cb5aee2.zip |
check-reqs.eclass: Make check-reqs_prepare internal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/check-reqs.eclass')
-rw-r--r-- | eclass/check-reqs.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index 6b11794fbb21..afdb7d83ee00 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass @@ -76,7 +76,7 @@ _CHECK_REQS_ECLASS=1 check-reqs_pkg_setup() { debug-print-function ${FUNCNAME} "$@" - check-reqs_prepare + _check-reqs_prepare check-reqs_run check-reqs_output } @@ -95,6 +95,16 @@ check-reqs_pkg_pretend() { # @DESCRIPTION: # Internal function that checks the variables that should be defined. check-reqs_prepare() { + [[ ${EAPI} == [67] ]] || + die "Internal function ${FUNCNAME} is not available in EAPI ${EAPI}." + _check-reqs_prepare "$@" +} + +# @FUNCTION: _check-reqs_prepare +# @INTERNAL +# @DESCRIPTION: +# Internal function that checks the variables that should be defined. +_check-reqs_prepare() { debug-print-function ${FUNCNAME} "$@" if [[ -z ${CHECKREQS_MEMORY} && |