1 |
I suggest to add support for per-repository per-attribute environmental variables in Portage. |
2 |
These variables would be used when PORTAGE_REPOSITORIES is not set. |
3 |
|
4 |
Example of setting of them by user and detection of them by Portage: |
5 |
|
6 |
$ env \ |
7 |
> PORTAGE_REPOSITORY:gentoo:location=/var/db/repositories/gentoo-cvs \ |
8 |
> PORTAGE_REPOSITORY:gentoo:sync-type=cvs \ |
9 |
> PORTAGE_REPOSITORY:gentoo:sync-uri=:pserver:anonymous@××××××××××××××.org:/var/cvsroot \ |
10 |
> python -c 'import os, pprint; pprint.pprint([x for x in os.environ.items() if x[0].startswith("PORTAGE_REPOSITORY:")])' |
11 |
[('PORTAGE_REPOSITORY:gentoo:sync-type', 'cvs'), |
12 |
('PORTAGE_REPOSITORY:gentoo:location', '/var/db/repositories/gentoo-cvs'), |
13 |
('PORTAGE_REPOSITORY:gentoo:sync-uri', |
14 |
':pserver:anonymous@××××××××××××××.org:/var/cvsroot')] |
15 |
|
16 |
A separator between components of names of these variables cannot be any character valid in names of repositories. |
17 |
|
18 |
-- |
19 |
Arfrever Frehtes Taifersar Arahesis |