Gentoo Archives: gentoo-portage-dev

From: Marius Mauch <genone@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Custom eclass question
Date: Mon, 10 Oct 2005 14:34:11
Message-Id: 434A700E.20205@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Custom eclass question by Mikey
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