Gentoo Archives: gentoo-portage-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>
To: Gentoo Portage Development <gentoo-portage-dev@l.g.o>
Subject: [gentoo-portage-dev] Support for per-repository per-attribute environmental variables
Date: Tue, 09 Dec 2014 00:33:52
Message-Id: 201412090133.30218.Arfrever.FTA@gmail.com
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies