From 1599ad494fb12f24513862c0b0c9a1f95d50dc1e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Nov 2008 02:08:04 +0000 Subject: Don't call prepare_build_dirs() inside doebuild() when called for parallel fetching. svn path=/main/trunk/; revision=12115 --- pym/portage/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index a4068b8fa..d61803fe0 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5294,6 +5294,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) @@ -5527,7 +5530,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 -- cgit v1.2.3-1-g7c22