Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Of death and prerm
Date: Wed, 30 Aug 2017 08:05:09
Message-Id: 20170830100455.1c4fbccf@gentoo.org
In Reply to: [gentoo-dev] Of death and prerm by Michael Orlitzky
1 On Tue, 29 Aug 2017 16:38:15 -0400
2 Michael Orlitzky <mjo@g.o> wrote:
3
4 > What should happen if an ebuild calls "die" in pkg_prerm?
5 >
6 > The issue arose while trying to create a package that could not be
7 > uninstalled except as part of an upgrade. The first thing that came to
8 > mind was to have it die in pkg_prerm.
9 >
10 > What portage does is *appear* to crash, but then continue along as if
11 > nothing happened.
12 >
13 > Does the PMS cover this indirectly? (Is there a reliable way to make
14 > package removal fail?)
15
16 Is there any point in dying in any phase after (or during)
17 pkg_postinst ?
18 files are already live by then; what would this achieve ?

Replies

Subject Author
Re: [gentoo-dev] Of death and prerm Michael Orlitzky <mjo@g.o>