Add suitable default PORTAGE_TMPDIR setting.
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Aug 2010 08:58:37 +0000 (01:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Aug 2010 08:58:37 +0000 (01:58 -0700)
pym/portage/tests/resolver/ResolverPlayground.py

index ab231adaac81e48fa974d614d4fe3cd898e40a1d..fd916a71bc90b9bdf0a511a56b03cb9a656d7cd6 100644 (file)
@@ -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()