Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v3 11/19] user.eclass: Also permit using functions in pkg_*rm phases
Date: Sun, 09 Jun 2019 11:32:29
Message-Id: 20190609112814.15907-12-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v3 00/19] User/group packages by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/user.eclass | 2 +-
4 1 file changed, 1 insertion(+), 1 deletion(-)
5
6 diff --git a/eclass/user.eclass b/eclass/user.eclass
7 index e4e2732b11e0..ceb805675cf6 100644
8 --- a/eclass/user.eclass
9 +++ b/eclass/user.eclass
10 @@ -18,7 +18,7 @@ _USER_ECLASS=1
11 # @USAGE: <calling func name>
12 _assert_pkg_ebuild_phase() {
13 case ${EBUILD_PHASE} in
14 - setup|preinst|postinst) ;;
15 + setup|preinst|postinst|prerm|postrm) ;;
16 *)
17 eerror "'$1()' called from '${EBUILD_PHASE}' phase which is not OK:"
18 eerror "You may only call from pkg_{setup,preinst,postinst} functions."
19 --
20 2.22.0.rc3

Replies