diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-07-19 22:37:20 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-08-03 13:13:54 +0200 |
commit | 61eee5f9f9b99a7161bdbb4a04c9f848c6767491 (patch) | |
tree | 4cc4d0d5124f2685a3501d391b0e2c6df2aecdf9 /eclass | |
parent | check-reqs.eclass: Make check-reqs_output internal (diff) | |
download | gentoo-61eee5f9f9b99a7161bdbb4a04c9f848c6767491.tar.gz gentoo-61eee5f9f9b99a7161bdbb4a04c9f848c6767491.tar.bz2 gentoo-61eee5f9f9b99a7161bdbb4a04c9f848c6767491.zip |
check-reqs.eclass: Make check-reqs_memory internal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to '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 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]" |