diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-09 22:40:14 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-09 22:40:14 -0800 |
commit | e295b46dfaf9ecf1ba3bcfa8038132053fd1cbd0 (patch) | |
tree | 9dc02037d7a6d03f42c184c48500f66ec835c175 /pym/portage | |
parent | ce1e80852ace9779a1bb70d16465b7fd73e705b4 (diff) | |
download | portage-e295b46dfaf9ecf1ba3bcfa8038132053fd1cbd0.tar.gz portage-e295b46dfaf9ecf1ba3bcfa8038132053fd1cbd0.tar.bz2 portage-e295b46dfaf9ecf1ba3bcfa8038132053fd1cbd0.zip |
config: set PORTAGE_OVERRIDE_EPREFIX for subprocs
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/package/ebuild/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
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") |