summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-27 02:09:11 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-27 02:09:11 +0000
commitcac7110268c8238b1b1cacedbe6cb5e2ca1b47df (patch)
tree91b3d73f21b23f7ed141dafaa1989974244bd4bf
parentFor bug #235642, include the stat mode, uid, and gid bits in the hardlink key. (diff)
downloadportage-multirepo-cac7110268c8238b1b1cacedbe6cb5e2ca1b47df.tar.gz
portage-multirepo-cac7110268c8238b1b1cacedbe6cb5e2ca1b47df.tar.bz2
portage-multirepo-cac7110268c8238b1b1cacedbe6cb5e2ca1b47df.zip
Don't call prepare_build_dirs() inside doebuild() when called for parallel
fetching. (trunk r12115) svn path=/main/branches/2.1.6/; revision=12116
-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 2db35858..862e50f1 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