diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-07-19 22:40:02 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-08-03 13:13:54 +0200 |
commit | ff4764073c8f9c0273931d6915d7fc54f985d1f3 (patch) | |
tree | 09ed03a26ba14a7e0e892bfbdd65b4680025dde7 /eclass/check-reqs.eclass | |
parent | check-reqs.eclass: Make check-reqs_disk internal (diff) | |
download | gentoo-ff4764073c8f9c0273931d6915d7fc54f985d1f3.tar.gz gentoo-ff4764073c8f9c0273931d6915d7fc54f985d1f3.tar.bz2 gentoo-ff4764073c8f9c0273931d6915d7fc54f985d1f3.zip |
check-reqs.eclass: Make check-reqs_start_phase internal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/check-reqs.eclass')
-rw-r--r-- | eclass/check-reqs.eclass | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index d07ebbadb8a8..6159369920f0 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass @@ -312,7 +312,7 @@ _check-reqs_memory() { local actual_memory local actual_swap - check-reqs_start_phase \ + _check-reqs_start_phase \ ${size} \ "RAM" @@ -371,7 +371,7 @@ _check-reqs_disk() { local size=${2} local space_kbi - check-reqs_start_phase \ + _check-reqs_start_phase \ ${size} \ "disk space at \"${path}\"" @@ -397,6 +397,16 @@ _check-reqs_disk() { # @DESCRIPTION: # Internal function that inform about started check check-reqs_start_phase() { + [[ ${EAPI} == [67] ]] || + die "Internal function ${FUNCNAME} is not available in EAPI ${EAPI}." + _check-reqs_start_phase "$@" +} + +# @FUNCTION: _check-reqs_start_phase +# @INTERNAL +# @DESCRIPTION: +# Internal function that inform about started check +_check-reqs_start_phase() { debug-print-function ${FUNCNAME} "$@" [[ -z ${2} ]] && die "Usage: ${FUNCNAME} [size] [location]" |