diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-01 07:23:28 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-01 07:23:28 -0700 |
commit | 621b4fa5986029ad68c09809ce76512646039bea (patch) | |
tree | 45d8ed6dade2d4c9d1cc7526f0c2f51f85f28086 | |
parent | fc82f9be972fb9f8e25456764c04872c32ec97ad (diff) | |
download | portage-621b4fa5986029ad68c09809ce76512646039bea.tar.gz portage-621b4fa5986029ad68c09809ce76512646039bea.tar.bz2 portage-621b4fa5986029ad68c09809ce76512646039bea.zip |
Make more doebuild() commands exempt from _check_temp_dir().
-rw-r--r-- | pym/portage/package/ebuild/doebuild.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 39878b932..ed11025d4 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -312,6 +312,10 @@ def doebuild_environment(myebuild, mydo, myroot=None, settings=None, _doebuild_manifest_cache = None _doebuild_broken_ebuilds = set() _doebuild_broken_manifests = set() +_doebuild_commands_without_builddir = ( + 'clean', 'cleanrm', 'depend', 'digest', + 'fetch', 'fetchall', 'help', 'manifest' +) def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, fetchonly=0, cleanup=0, dbkey=None, use_cache=1, fetchall=0, tree=None, @@ -587,8 +591,10 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, if rval != os.EX_OK: return rval - if mydo not in ('digest', 'manifest') and \ - mydo not in EbuildSpawnProcess._phases_without_builddir: + # 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 \ + mydo not in _doebuild_commands_without_builddir: rval = _check_temp_dir(mysettings) if rval != os.EX_OK: return rval |