commit: 7ffeee6c9eb56c581a7c5b5a57b11169da4121c2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jun 6 16:32:20 2019 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jun 20 08:16:47 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ffeee6c
user.eclass: Also permit using functions in pkg_*rm phases Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/user.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/user.eclass b/eclass/user.eclass index 7592ee3bba2..fc883c96535 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