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 |