1 |
I've patch portage.py (VERSION="2.0.47-r10") and ebuild.sh to use a |
2 |
new variable in make.conf. The new variable is DISTDIRS="directory1 |
3 |
directory2 etc". |
4 |
The purpose of this is to allow people to have distfiles in multiple |
5 |
locations (ie. cdrom, nfs, etc). |
6 |
|
7 |
What happens: |
8 |
1. Look in DISTDIR for files (as normal) |
9 |
2. If not found, traverse through all directories in DISTDIRS looking |
10 |
for files. |
11 |
3. Set a new environment variable (DDIR) pointing to correct directory |
12 |
holding the files. |
13 |
4. ebuild.sh will use DDIR if set instead of DISTDIR. |
14 |
|
15 |
Notes: |
16 |
1. I couldn't really figure out what the envirnoment variables A and |
17 |
AA were meant for. |
18 |
|
19 |
2. I thought it best to avoid messing with the envirnoment variable |
20 |
DISTDIR to avoid confusion/problems (hence the new DDIR). |
21 |
|
22 |
3. How can I get the latest cvs copy of portage as I would assume |
23 |
people would want a diff against that. |
24 |
|
25 |
This will need further testing/fixing as I've only spent a few hours |
26 |
on it and I'm a non-python user. |
27 |
|
28 |
Anyone doing something like this or anyone have any comments? |
29 |
|
30 |
Kurt |
31 |
--- |
32 |
There is no good and evil; there is only power. |
33 |
|
34 |
-- |
35 |
gentoo-dev@g.o mailing list |