summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-27 02:08:04 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-27 02:08:04 +0000
commit1599ad494fb12f24513862c0b0c9a1f95d50dc1e (patch)
tree1880e7627059b73e704e42cb994b40a523ce5377
parente24b9cac102dd04b7a73f80900e7895a7b82a665 (diff)
downloadportage-1599ad494fb12f24513862c0b0c9a1f95d50dc1e.tar.gz
portage-1599ad494fb12f24513862c0b0c9a1f95d50dc1e.tar.bz2
portage-1599ad494fb12f24513862c0b0c9a1f95d50dc1e.zip
Don't call prepare_build_dirs() inside doebuild() when called for parallel
fetching. svn path=/main/trunk/; revision=12115
-rw-r--r--pym/portage/__init__.py5
1 files changed, 4 insertions, 1 deletions
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