summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-07-19 22:36:07 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-08-03 13:13:53 +0200
commit6aa51a2075349a1176472334a30c8bcd871cb222 (patch)
tree652d03e549a7a8868c8f4e0d2a27145f8aff653c /eclass
parentcheck-reqs.eclass: Make check-reqs_get_unit internal (diff)
downloadgentoo-6aa51a2075349a1176472334a30c8bcd871cb222.tar.gz
gentoo-6aa51a2075349a1176472334a30c8bcd871cb222.tar.bz2
gentoo-6aa51a2075349a1176472334a30c8bcd871cb222.zip
check-reqs.eclass: Make check-reqs_output internal
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/check-reqs.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
index 17ace80d95d5..1d5c044cb3b5 100644
--- a/eclass/check-reqs.eclass
+++ b/eclass/check-reqs.eclass
@@ -78,7 +78,7 @@ check-reqs_pkg_setup() {
_check-reqs_prepare
_check-reqs_run
- check-reqs_output
+ _check-reqs_output
}
# @FUNCTION: check-reqs_pkg_pretend
@@ -261,6 +261,17 @@ _check-reqs_get_unit() {
# Internal function that prints the warning and dies if required based on
# the test results.
check-reqs_output() {
+ [[ ${EAPI} == [67] ]] ||
+ die "Internal function ${FUNCNAME} is not available in EAPI ${EAPI}."
+ _check-reqs_get_unit "$@"
+}
+
+# @FUNCTION: _check-reqs_output
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function that prints the warning and dies if required based on
+# the test results.
+_check-reqs_output() {
debug-print-function ${FUNCNAME} "$@"
local msg="ewarn"