Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: pkg_needrebuild() API for smart-live-rebuild
Date: Fri, 07 Aug 2015 19:43:09
Message-Id: 21957.2627.343104.594116@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] RFC: pkg_needrebuild() API for smart-live-rebuild by "Michał Górny"
1 >>>>> On Fri, 7 Aug 2015, Michał Górny wrote:
2
3 > The function can return one of the following return codes:
4
5 > - 0 -- indicating that the package should be rebuilt from ebuild
6 > (changes occured),
7
8 > - 1 -- indicating that the package needs not be rebuilt.
9
10 > The function must use 'die' if an error preventing the function
11 > from determining the state occurs.
12
13 Wouldn't it be feasible to leave error handling in that case to the
14 caller, i.e. have a third return code for the case there is some
15 failure?
16 https://bugs.gentoo.org/show_bug.cgi?id=482666#c2
17
18 > The function can output any user-oriented messages. The following
19 > output functions are made available: einfo, einfon, elog, ewarn,
20 > eerror, ebegin, eend. The following additional functions are
21 > available: die, assert, has, hasv, hasq.
22
23 No use/usev/usex functions? There might be cases where a rebuild is
24 only needed for a certain combination of USE flags.
25
26 Ulrich

Replies

Subject Author
Re: [gentoo-dev] RFC: pkg_needrebuild() API for smart-live-rebuild "Michał Górny" <mgorny@g.o>