Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH v3 11/19] user.eclass: Also permit using functions in pkg_*rm phases
Date: Sun, 09 Jun 2019 16:13:15
Message-Id: fe217950-d2cf-7115-66bd-51351a9de605@gentoo.org
In Reply to: [gentoo-dev] [PATCH v3 11/19] user.eclass: Also permit using functions in pkg_*rm phases by "Michał Górny"
1 On 6/9/19 7:28 AM, Michał Górny wrote:
2 > _assert_pkg_ebuild_phase() {
3 > case ${EBUILD_PHASE} in
4 > - setup|preinst|postinst) ;;
5 > + setup|preinst|postinst|prerm|postrm) ;;
6 > *)
7 > eerror "'$1()' called from '${EBUILD_PHASE}' phase which is not OK:"
8 > eerror "You may only call from pkg_{setup,preinst,postinst} functions."
9 >
10
11 The error message needs an update, too.