summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-06-06 18:32:20 +0200
committerMichał Górny <mgorny@gentoo.org>2019-06-20 10:16:47 +0200
commit7ffeee6c9eb56c581a7c5b5a57b11169da4121c2 (patch)
treed34d98a0e51b896f577727e04895ed2f8133eb62 /eclass
parentuser.eclass: Introduce eget{user,group}name (diff)
downloadgentoo-7ffeee6c9eb56c581a7c5b5a57b11169da4121c2.tar.gz
gentoo-7ffeee6c9eb56c581a7c5b5a57b11169da4121c2.tar.bz2
gentoo-7ffeee6c9eb56c581a7c5b5a57b11169da4121c2.zip
user.eclass: Also permit using functions in pkg_*rm phases
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/user.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass
index 7592ee3bba23..fc883c965352 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -18,10 +18,10 @@ _USER_ECLASS=1
# @USAGE: <calling func name>
_assert_pkg_ebuild_phase() {
case ${EBUILD_PHASE} in
- setup|preinst|postinst) ;;
+ setup|preinst|postinst|prerm|postrm) ;;
*)
eerror "'$1()' called from '${EBUILD_PHASE}' phase which is not OK:"
- eerror "You may only call from pkg_{setup,preinst,postinst} functions."
+ eerror "You may only call from pkg_{setup,{pre,post}{inst,rm}} functions."
eerror "Package fails at QA and at life. Please file a bug."
die "Bad package! $1 is only for use in some pkg_* functions!"
esac