Re: [gentoo-portage-dev] Support for per-repository per-attribute environmental variables

2014-12-09 Thread Alexander Berntsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 09/12/14 01:33, Arfrever Frehtes Taifersar Arahesis wrote:
 I suggest to add support for per-repository per-attribute 
 environmental variables in Portage. These variables would be used 
 when PORTAGE_REPOSITORIES is not set.
Please file a bug report.

- -- 
Alexander
berna...@gentoo.org
https://secure.plaimi.net/~alexander
-BEGIN PGP SIGNATURE-
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlSGuBQACgkQRtClrXBQc7VRXwD9GvR4uIUGetdl21xVBO6i1AnW
A4iHqFDikIj+HYdCsf0A/2VGftRhK+PFNS6jq4Jg6zpbxky1SG+cjmweLTw71C/3
=Fb7p
-END PGP SIGNATURE-



[gentoo-portage-dev] Support for per-repository per-attribute environmental variables

2014-12-08 Thread Arfrever Frehtes Taifersar Arahesis
I suggest to add support for per-repository per-attribute environmental 
variables in Portage.
These variables would be used when PORTAGE_REPOSITORIES is not set.

Example of setting of them by user and detection of them by Portage:

$ env \
 PORTAGE_REPOSITORY:gentoo:location=/var/db/repositories/gentoo-cvs \
 PORTAGE_REPOSITORY:gentoo:sync-type=cvs \
 PORTAGE_REPOSITORY:gentoo:sync-uri=:pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot
  \
 python -c 'import os, pprint; pprint.pprint([x for x in os.environ.items() if 
 x[0].startswith(PORTAGE_REPOSITORY:)])'
[('PORTAGE_REPOSITORY:gentoo:sync-type', 'cvs'),
 ('PORTAGE_REPOSITORY:gentoo:location', '/var/db/repositories/gentoo-cvs'),
 ('PORTAGE_REPOSITORY:gentoo:sync-uri',
  ':pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot')]

A separator between components of names of these variables cannot be any 
character valid in names of repositories.

--
Arfrever Frehtes Taifersar Arahesis


signature.asc
Description: This is a digitally signed message part.