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 07A7213888F for ; Fri, 23 Oct 2015 01:36:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9403521C01A; Fri, 23 Oct 2015 01:36:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 14B5521C001 for ; Fri, 23 Oct 2015 01:36:26 +0000 (UTC) Received: from localhost.localdomain (unknown [100.42.98.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 8B6CA340A35; Fri, 23 Oct 2015 01:36:25 +0000 (UTC) From: Zac Medico To: gentoo-portage-dev@lists.gentoo.org Cc: Zac Medico Subject: [gentoo-portage-dev] [PATCH] RepoConfigLoader: allow subsitution of variables like ROOT in repos.conf Date: Thu, 22 Oct 2015 18:36:03 -0700 Message-Id: <1445564163-27294-1-git-send-email-zmedico@gentoo.org> X-Mailer: git-send-email 2.4.9 In-Reply-To: <1445538549.31293.104.camel@transmode.se> References: <1445538549.31293.104.camel@transmode.se> 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 X-Archives-Salt: d4bab6e5-bf5f-4171-9a2c-de8a858430be X-Archives-Hash: f2b7fbf4f426c3adc1ca454463054f90 This makes it possible to sync repositories inside $ROOT. X-Gentoo-Bug: 563836 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=563836 --- pym/portage/repository/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index a90a994..1060bc7 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -620,7 +620,12 @@ class RepoConfigLoader(object): treemap = {} ignored_map = {} ignored_location_map = {} - default_opts = {} + default_opts = { + "EPREFIX" : settings["EPREFIX"], + "EROOT" : settings["EROOT"], + "PORTAGE_CONFIGROOT" : settings["PORTAGE_CONFIGROOT"], + "ROOT" : settings["ROOT"], + } if "PORTAGE_REPOSITORIES" in settings: portdir = "" -- 2.4.9