From 61eee5f9f9b99a7161bdbb4a04c9f848c6767491 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 19 Jul 2021 22:37:20 +0200 Subject: check-reqs.eclass: Make check-reqs_memory internal Signed-off-by: Andreas Sturmlechner --- eclass/check-reqs.eclass | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'eclass/check-reqs.eclass') diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index 1d5c044cb3b5..0a3a8720bfef 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass @@ -139,7 +139,7 @@ _check-reqs_run() { if [[ ${MERGE_TYPE} != binary ]]; then [[ -n ${CHECKREQS_MEMORY} ]] && \ - check-reqs_memory \ + _check-reqs_memory \ ${CHECKREQS_MEMORY} [[ -n ${CHECKREQS_DISK_BUILD} ]] && \ @@ -294,6 +294,16 @@ _check-reqs_output() { # @DESCRIPTION: # Internal function that checks size of RAM. check-reqs_memory() { + [[ ${EAPI} == [67] ]] || + die "Internal function ${FUNCNAME} is not available in EAPI ${EAPI}." + _check-reqs_memory "$@" +} + +# @FUNCTION: _check-reqs_memory +# @INTERNAL +# @DESCRIPTION: +# Internal function that checks size of RAM. +_check-reqs_memory() { debug-print-function ${FUNCNAME} "$@" [[ -z ${1} ]] && die "Usage: ${FUNCNAME} [size]" -- cgit v1.2.3-65-gdbad