diff options
author | Mike Frysinger <vapier@google.com> | 2015-05-31 10:33:43 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2015-05-31 10:33:43 -0400 |
commit | 35badf9ba6a03fa1fbe517cd3e35db4ba3c4647c (patch) | |
tree | 8961d555a473d4b52ba69c44ad29e24d0d6a5100 | |
parent | bb3e5869efcc9dad842aae2bf07d964a438f5fd2 (diff) | |
download | portage-35badf9ba6a03fa1fbe517cd3e35db4ba3c4647c.tar.gz |
wrapper: set EPREFIX by default
Portage is a bit limited in where it can have this variable set.
Stick it in the environment for all tools as that seems to work.
BUG=b:20895978
Change-Id: I4342ba198c70b92aa870edad0b560470747cd738
-rwxr-xr-x | wrapper.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,4 +19,5 @@ base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) portage_path = os.path.join(base_path, 'lib', 'portage') sys.path.insert(0, os.path.join(portage_path, 'pym')) os.environ['PYTHONPATH'] = ':'.join(sys.path) +os.environ['EPREFIX'] = '/' os.execv(os.path.join(portage_path, 'bin', os.path.basename(__file__)), sys.argv) |