From: Zac Medico Date: Thu, 27 Nov 2008 02:09:11 +0000 (-0000) Subject: Don't call prepare_build_dirs() inside doebuild() when called for parallel X-Git-Tag: v2.1.6_rc2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cac7110268c8238b1b1cacedbe6cb5e2ca1b47df;p=portage.git Don't call prepare_build_dirs() inside doebuild() when called for parallel fetching. (trunk r12115) svn path=/main/branches/2.1.6/; revision=12116 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 2db358580..862e50f18 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5284,6 +5284,9 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, fetchall = 1 mydo = "fetch" + parallel_fetchonly = mydo in ("fetch", "fetchall") and \ + "PORTAGE_PARALLEL_FETCHONLY" in mysettings + if mydo not in clean_phases and not os.path.exists(myebuild): writemsg("!!! doebuild: %s not found for %s\n" % (myebuild, mydo), noiselevel=-1) @@ -5517,7 +5520,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, # Build directory creation isn't required for any of these. have_build_dirs = False - if not mydo in ("digest", "help", "manifest"): + if not parallel_fetchonly and mydo not in ("digest", "help", "manifest"): mystatus = prepare_build_dirs(myroot, mysettings, cleanup) if mystatus: return mystatus