1 |
Mikey wrote: |
2 |
> On Sunday 09 October 2005 19:32, Marius Mauch wrote: |
3 |
> |
4 |
>>Well, ebuilds (and therefore eclasses) can't override anything related |
5 |
>>to the fetch process (other than setting RESTRICT and/or SRC_URI). Your |
6 |
>>problem has to be fixed server side (assuming you want a proper |
7 |
>>solution), as portage *needs* the correct filename in SRC_URI for things |
8 |
>>like md5 verification. So even if $FETCHCOMMAND would save your file |
9 |
>>with the "right" name you would be in trouble. |
10 |
> |
11 |
> |
12 |
> I was wondering why pkg_fetch seemed to be the only function that cannot be |
13 |
> localized in an ebuild... Why is that? |
14 |
|
15 |
Because fetching isn't done in the bash part, but in the python part of |
16 |
portage, and ebuild can only override things in the bash part ever. |
17 |
Fetching involves a lot more than just calling wget, take a look at |
18 |
fetch() in portage.py if you're interested. |
19 |
Oh, and there are many more things that cannot be overridden, like dep |
20 |
calculation, merging, cleaning, ... |
21 |
|
22 |
Marius |
23 |
-- |
24 |
gentoo-portage-dev@g.o mailing list |