Skip to content

Commit

Permalink
check-reqs.eclass: Make check-reqs_prepare internal
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Aug 3, 2021
1 parent 4d7fe02 commit 6d8423a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eclass/check-reqs.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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} &&
Expand Down

0 comments on commit 6d8423a

Please sign in to comment.