>>>>> On Fri, 7 Aug 2015, Michał Górny wrote:

> The function can return one of the following return codes:

> - 0 -- indicating that the package should be rebuilt from ebuild
>   (changes occured),

> - 1 -- indicating that the package needs not be rebuilt.

> The function must use 'die' if an error preventing the function
> from determining the state occurs.

Wouldn't it be feasible to leave error handling in that case to the
caller, i.e. have a third return code for the case there is some
failure?
https://bugs.gentoo.org/show_bug.cgi?id=482666#c2

> The function can output any user-oriented messages. The following
> output functions are made available: einfo, einfon, elog, ewarn,
> eerror, ebegin, eend. The following additional functions are
> available: die, assert, has, hasv, hasq.

No use/usev/usex functions? There might be cases where a rebuild is
only needed for a certain combination of USE flags.

Ulrich

Attachment: pgpmdnGzvroB0.pgp
Description: PGP signature

Reply via email to