From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E12F71389E2 for ; Tue, 9 Dec 2014 00:33:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4E0FE0AA3; Tue, 9 Dec 2014 00:33:51 +0000 (UTC) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FBACE0AA2 for ; Tue, 9 Dec 2014 00:33:51 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id a1so223634wgh.9 for ; Mon, 08 Dec 2014 16:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=zbJ0szKitC5ba9+f+sGi14tuESiATFoutpphPKEZicM=; b=QCA9aXfHZMV362DMjwJXYs7xJttvs+lrRhgTMGG2cjX4VW3vLu4N9EZVYoppXuRMan M8jRzqb5Bac8tpPj7B3Ujnitqf23ybGjY8jLGa3rG05JfRQcG4ZPHvlpr5xMc174pnBZ hCK6hcw3lLA2Vm2ydwGOsD5m5BKCjze1UwpyW9kzcVawrJWBdAy/0P5/7quzFA6HhGES oJEDLK886cEjG4CoIhAOw46rMrNo1FhiynJxaf4rDMAE043B4T7J356U1p46icjwqXfq DxEqg9NzQ2A8Ql1O//ld/Mb1f0ZOEEqhMEYg6er8c1K7NJdLnJCfZWldxiEcnuhxcvPz /0BQ== X-Received: by 10.194.92.116 with SMTP id cl20mr143983wjb.71.1418085230051; Mon, 08 Dec 2014 16:33:50 -0800 (PST) Received: from afta-picea.localnet (host-94-251-141-202.dynamic.mm.pl. [94.251.141.202]) by mx.google.com with ESMTPSA id kn5sm58539558wjb.48.2014.12.08.16.33.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 16:33:49 -0800 (PST) From: Arfrever Frehtes Taifersar Arahesis X-Google-Original-From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Portage Development Subject: [gentoo-portage-dev] Support for per-repository per-attribute environmental variables Date: Tue, 9 Dec 2014 01:33:27 +0100 User-Agent: KMail (GNU/Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12802508.1pgCYfP81L"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Transfer-Encoding: 7bit Message-Id: <201412090133.30218.Arfrever.FTA@gmail.com> X-Archives-Salt: 69e7fa76-a05a-4457-ad23-225a829537d6 X-Archives-Hash: 1b0b982cff9598ae9ac00544f4931394 --nextPart12802508.1pgCYfP81L Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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:anonymous@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:anonymous@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 --nextPart12802508.1pgCYfP81L Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJUhkNaAAoJEHgbAhhyXND8a8UQAKdcO7TJdQT0dmpjZ1hW5f8L 4kd6c18CaNtmKVhspVgtD7qHgKfR7wncwlyHJcMQCYEp4fEtX040WCHbYYDI9EJe lxxE27yrdbOj3s7BKGqOZgu98s6KkXe5xO96wMnosq/uF18Enj2QPBi1L1+JeHr3 TbdwwCIHai4WIDjYMD1/ZLYFF2VdeEWP5SWOUYr3YXIUX9DbtH8+VGdXMbq7Fm2b 3q57LAu+fP/8FTe9euSkpSWaYoRgLkkrVjMm6C9tVraP61d7obyWjkE8VUI+nW9/ dL1gbUucPCjtIlOj91xep2pG88nMnud/K0ZkJIXUREPihu4D+xJEJr9ZTCi46HFH 3B7kfmL8U04fBw+5wIKvcBrCs8gaQ/K7sA09M/5aU1cOTdV1hFqDjQo0I2y5H0kW JLSFP268QimrF6xBIf1/oQPEVVfBJr5BoJPrrHxZTJadHRJNj5qp0+pw9twfPmRW JEAnbXaoeaYyzH9QNUVe4+KneFGWc9dnz9EbxOfan+tfe6A5RS7UNoTmx/tLCjrP O3jiJ8YGdI7FkAig0z08sBkmMHZ5tnYoArtrTPv8PhB9BZEgsDJpVPY9LORI2fek ECxNjnk4WSoEDAcs+ty+Le8AAXo/mBjXU/tWVkysoMspmsgmwteQWe8AWJ9LVmDR Cbv/RUpgNy69YCXNdDTw =t1GD -----END PGP SIGNATURE----- --nextPart12802508.1pgCYfP81L--