commit:     28ca5051286690166fc9d6f3a12b77ad687c17aa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 20 21:47:41 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 20 21:47:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ca5051

user.eclass: add _assert_pkg_ebuild_phase @DESCRIPTION

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/user.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/user.eclass b/eclass/user.eclass
index c86ed53a11d..7c643252f6d 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -33,6 +33,8 @@ inherit user-info
 # @FUNCTION: _assert_pkg_ebuild_phase
 # @INTERNAL
 # @USAGE: <calling func name>
+# @DESCRIPTION:
+# Raises an alert if the phase is not suitable for user.eclass usage.
 _assert_pkg_ebuild_phase() {
        case ${EBUILD_PHASE} in
        setup|preinst|postinst|prerm|postrm) ;;

Reply via email to