summaryrefslogtreecommitdiff
path: root/eclass/check-reqs.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/check-reqs.eclass')
-rw-r--r--eclass/check-reqs.eclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
index 5a754c54a303..ddf0a47775ae 100644
--- a/eclass/check-reqs.eclass
+++ b/eclass/check-reqs.eclass
@@ -1,4 +1,4 @@
-# Copyright 2004-2021 Gentoo Authors
+# Copyright 2004-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: check-reqs.eclass
@@ -76,6 +76,12 @@ _CHECK_REQS_ECLASS=1
# This is a user flag and should under _no circumstances_ be set in the ebuild.
[[ -n ${I_KNOW_WHAT_I_AM_DOING} ]] && CHECKREQS_DONOTHING=1
+# @ECLASS_VARIABLE: CHECKREQS_FAILED
+# @INTERNAL
+# @DESCRIPTION:
+# If set the checks failed and eclass should abort the build.
+# Internal, do not set yourself.
+
# @FUNCTION: check-reqs_pkg_setup
# @DESCRIPTION:
# Exported function running the resources checks in pkg_setup phase.
@@ -457,11 +463,6 @@ _check-reqs_unsatisfied() {
[[ ${EBUILD_PHASE} == "pretend" && -z ${CHECKREQS_DONOTHING} ]] && msg="eerror"
${msg} "There is NOT at least ${sizeunit} ${location}"
- # @ECLASS_VARIABLE: CHECKREQS_FAILED
- # @INTERNAL
- # @DESCRIPTION:
- # If set the checks failed and eclass should abort the build.
- # Internal, do not set yourself.
CHECKREQS_FAILED="true"
}