1 |
On Tuesday 04 October 2005 03:30, Brian Harring wrote: |
2 |
> On Tue, Oct 04, 2005 at 01:06:35AM +0900, Jason Stubbs wrote: |
3 |
> > Don't like the size of this patch, but it's quite repetitive so... |
4 |
> |
5 |
> Wouldn't worry on the repetitive, it's repetitive due to the fact the |
6 |
> *dbapi classes don't (ab|)use inheritance... |
7 |
> |
8 |
> > * Make all aux_get() functions return a list of strings again |
9 |
> |
10 |
> Why is this a good thing for EAPI? |
11 |
|
12 |
Consistency. There is no mapping of names to types so any tool that uses |
13 |
aux_get to enumerate values and assumes that they are strings (as they have |
14 |
always been and still are for every other key) would break. |
15 |
|
16 |
> > * Move the EAPI validity check into a separate function |
17 |
> > * Raise a specific UnsupportedAPIException instead of plain Exception |
18 |
|
19 |
No problem with these two? |
20 |
|
21 |
> > * Mark metadata of unsupported EAPIs as "INVALID" rather than -1 |
22 |
> |
23 |
> This doesn't really fly imo. You mark it as invalid, and _no_ portage |
24 |
> version (regardless of it's ability to handle that EAPI) will _ever_ |
25 |
> regenerate that entry. |
26 |
> |
27 |
> An old portage version updating the cache would make certain nodes |
28 |
> never usable. |
29 |
> |
30 |
> The -1 is wrong, should be -EAPI. |
31 |
|
32 |
So negative numbers signals invalid cache entries in the scheme? |
33 |
|
34 |
> This however is getting back into |
35 |
> the "eapi should be freeform, not just ints", which I thought I |
36 |
> clarified why it should be ints (or people shut up instead of |
37 |
> listening to me argue it). :) |
38 |
|
39 |
The only reasoning that I recall without checking is that it wouldn't |
40 |
complicate certain code paths. That's not a valid reason, in my opinion. |
41 |
|
42 |
Can leave that debate alone though. s/INVALID/\-1/ in the patch works for me. |
43 |
|
44 |
-- |
45 |
Jason Stubbs |
46 |
-- |
47 |
gentoo-portage-dev@g.o mailing list |