In doebuild(), don't call _check_temp_dir() for pseudo-phases such as
authorZac Medico <zmedico@gentoo.org>
Wed, 1 Sep 2010 09:32:28 +0000 (02:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 1 Sep 2010 09:32:28 +0000 (02:32 -0700)
'manifest' and 'digest' that don't require a temp dir.

pym/portage/package/ebuild/doebuild.py

index cc1f60d861b2247c85815ac468f72a23a68909fa..39878b93251948d44a5ce881b1a6eb33f1a4c6f3 100644 (file)
@@ -587,9 +587,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                        if rval != os.EX_OK:
                                return rval
 
-               rval = _check_temp_dir(mysettings)
-               if rval != os.EX_OK:
-                       return rval
+               if mydo not in ('digest', 'manifest') and \
+                       mydo not in EbuildSpawnProcess._phases_without_builddir:
+                       rval = _check_temp_dir(mysettings)
+                       if rval != os.EX_OK:
+                               return rval
 
                if mydo == "unmerge":
                        return unmerge(mysettings["CATEGORY"],