commit: ff4764073c8f9c0273931d6915d7fc54f985d1f3
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 19 20:40:02 2021 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Aug 3 11:13:54 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff476407
check-reqs.eclass: Make check-reqs_start_phase internal
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
eclass/check-reqs.eclass | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
index d07ebbadb8a..6159369920f 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]"