summaryrefslogtreecommitdiffstats
path: root/pym/portage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/data.py')
-rw-r--r--pym/portage/data.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index c38fa17bc..c496c0b92 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -65,6 +65,9 @@ wheelgid=0
if uid==0:
secpass=2
+elif "__PORTAGE_TEST_EPREFIX" in os.environ:
+ secpass = 2
+
try:
wheelgid=grp.getgrnam("wheel")[2]
except KeyError: