From: Zac Medico Date: Sat, 10 Dec 2011 06:40:14 +0000 (-0800) Subject: config: set PORTAGE_OVERRIDE_EPREFIX for subprocs X-Git-Tag: v2.2.0_alpha80~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e295b46dfaf9ecf1ba3bcfa8038132053fd1cbd0;p=portage.git config: set PORTAGE_OVERRIDE_EPREFIX for subprocs --- diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 87cefee61..df719e2f1 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -502,8 +502,13 @@ class config(object): self["ROOT"] = target_root self.backup_changes("ROOT") + # The PORTAGE_OVERRIDE_EPREFIX variable propagates the EPREFIX + # of this config instance to any portage commands or API + # consumers running in subprocesses. self["EPREFIX"] = eprefix self.backup_changes("EPREFIX") + self["PORTAGE_OVERRIDE_EPREFIX"] = eprefix + self.backup_changes("PORTAGE_OVERRIDE_EPREFIX") self["EROOT"] = eroot self.backup_changes("EROOT")