doebuild: handle tmpdir / returnpid interaction
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Jul 2013 19:34:34 +0000 (12:34 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Jul 2013 19:34:34 +0000 (12:34 -0700)
pym/portage/package/ebuild/doebuild.py

index 1d44b93ab186a1278c599c3a87b878ad60d3371c..edf3df6abbe12c676dd35d42a50d26f5bf2f2251 100644 (file)
@@ -762,9 +762,9 @@ def doebuild(myebuild, mydo, _unused=DeprecationWarning, settings=None, debug=0,
                        if "noauto" in mysettings.features:
                                mysettings.features.discard("noauto")
 
-               # The info phase is special because it uses mkdtemp so and
-               # user (not necessarily in the portage group) can run it.
-               if mydo not in ('info',) and \
+               # If we are not using a private temp dir, then check access
+               # to the global temp dir.
+               if tmpdir is None and \
                        mydo not in _doebuild_commands_without_builddir:
                        rval = _check_temp_dir(mysettings)
                        if rval != os.EX_OK: