1 |
On Fri, Jan 27, 2012 at 1:33 AM, Thomas Kahle <tomka@g.o> wrote: |
2 |
> On 21:04 Wed 25 Jan 2012, "Paweł Hajdan, Jr." wrote: |
3 |
>> On 1/25/12 10:23 AM, Thomas Kahle wrote: |
4 |
>> > I suggest that emerge could signal its various failures via return |
5 |
>> > codes. That would be useful in automated archtesting: |
6 |
>> > |
7 |
>> > https://bugs.gentoo.org/show_bug.cgi?id=400705 |
8 |
>> |
9 |
>> My opinion is very similar to what Brian Harring said on that bug: some |
10 |
>> Python API would be much better than still pretty vague return code |
11 |
>> (what would you do with it?). |
12 |
> |
13 |
> My test setup (as you probably know) uses bash scripts (autogenerated by |
14 |
> app-portage/tatt) that call emerge with various USE-flag combinations |
15 |
> and then protocol failures to be looked at individually. Those scripts |
16 |
> can easily react to return codes. Sure thing, once the portage API |
17 |
> access is available, the entire test setup can be rewritten using it. I |
18 |
> just don't see this happening anytime soon. Making the return codes |
19 |
> more versatile should be quick and easy to implement. It's very KISS. |
20 |
|
21 |
I agree, but we have gentoo-portage-dev@g.o for this sort of thing? |
22 |
|
23 |
-A |
24 |
|
25 |
> |
26 |
>> Some ideas: |
27 |
>> |
28 |
>> - I emerge a list of packages, some unstable dependencies are required; |
29 |
>> allow me to get a list of those package atoms |
30 |
>> |
31 |
>> - same as above, but return list of USE flags adjustments required |
32 |
>> |
33 |
>> - package blocks |
34 |
>> |
35 |
>> - unsatisfied USE flag constraints |
36 |
>> |
37 |
>> ... and so on. I think it can start very simple and small, and be |
38 |
>> extended as needed. |
39 |
> |
40 |
> I think those ideas are great and natural, but I'd still prefer to have |
41 |
> something that is usable very soon instead of waiting for the portage |
42 |
> API to be available (and documented). |
43 |
> |
44 |
> Cheers, |
45 |
> Thomas |
46 |
> |
47 |
> |
48 |
> |
49 |
> -- |
50 |
> Thomas Kahle |
51 |
> http://dev.gentoo.org/~tomka/ |