From: Zac Medico Date: Sun, 7 Jul 2013 19:34:34 +0000 (-0700) Subject: doebuild: handle tmpdir / returnpid interaction X-Git-Tag: v2.2.0_alpha187~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82989f9c8aecadd3e7741850752a3a45f62c6b84;p=portage.git doebuild: handle tmpdir / returnpid interaction --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 1d44b93ab..edf3df6ab 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -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: