summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-10 01:58:37 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-10 01:58:37 -0700
commitf0dda1c747d058f69f079017c626977e6f26dafc (patch)
tree9f0998194c93635147c45a8ea5a6d918e036bc84
parentc5956b1b1e6f17024e9b732f0ec22419c6c9b7cb (diff)
downloadportage-f0dda1c747d058f69f079017c626977e6f26dafc.tar.gz
portage-f0dda1c747d058f69f079017c626977e6f26dafc.tar.bz2
portage-f0dda1c747d058f69f079017c626977e6f26dafc.zip
Add suitable default PORTAGE_TMPDIR setting.
-rw-r--r--pym/portage/tests/resolver/ResolverPlayground.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py
index ab231adaa..fd916a71b 100644
--- a/pym/portage/tests/resolver/ResolverPlayground.py
+++ b/pym/portage/tests/resolver/ResolverPlayground.py
@@ -155,7 +155,13 @@ class ResolverPlayground(object):
raise NotImplentedError()
def _load_config(self):
- env = { "PORTDIR": self.portdir, "ROOT": self.root, "ACCEPT_KEYWORDS": "x86"}
+ env = {
+ "ACCEPT_KEYWORDS": "x86",
+ "PORTDIR": self.portdir,
+ "ROOT": self.root,
+ 'PORTAGE_TMPDIR' : os.path.join(self.root, 'var/tmp')
+ }
+
settings = config(config_root=self.root, target_root=self.root, local_config=False, env=env)
settings.lock()