Signed-off-by: Michał Górny <mgo...@gentoo.org> --- eclass/user.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/user.eclass b/eclass/user.eclass index e4e2732b11e0..ceb805675cf6 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -18,7 +18,7 @@ _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." -- 2.22.0.rc3