Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 20 Jun 2021 21:48:07
Message-Id: 1624225661.28ca5051286690166fc9d6f3a12b77ad687c17aa.sam@gentoo
1 commit: 28ca5051286690166fc9d6f3a12b77ad687c17aa
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 21:47:41 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 21:47:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ca5051
7
8 user.eclass: add _assert_pkg_ebuild_phase @DESCRIPTION
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 eclass/user.eclass | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/eclass/user.eclass b/eclass/user.eclass
16 index c86ed53a11d..7c643252f6d 100644
17 --- a/eclass/user.eclass
18 +++ b/eclass/user.eclass
19 @@ -33,6 +33,8 @@ inherit user-info
20 # @FUNCTION: _assert_pkg_ebuild_phase
21 # @INTERNAL
22 # @USAGE: <calling func name>
23 +# @DESCRIPTION:
24 +# Raises an alert if the phase is not suitable for user.eclass usage.
25 _assert_pkg_ebuild_phase() {
26 case ${EBUILD_PHASE} in
27 setup|preinst|postinst|prerm|postrm) ;;