summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-09 03:47:10 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-09 03:47:10 +0000
commit233dc0c9c6a66256bc6ebf8d414f96166c5f0439 (patch)
tree65111c32e6b694bb3b9e2f23b7baf015f4a2793b
parent68b72fae927fcc442de104d9bb2c3155b24103c3 (diff)
downloadportage-233dc0c9c6a66256bc6ebf8d414f96166c5f0439.tar.gz
portage-233dc0c9c6a66256bc6ebf8d414f96166c5f0439.tar.bz2
portage-233dc0c9c6a66256bc6ebf8d414f96166c5f0439.zip
Never call digestgen() inside doebuild() which only 'fetch' has been
requested since it's not needed in this case. svn path=/main/trunk/; revision=12800
-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 fe3a7b168..9903cd820 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -6009,8 +6009,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
elif mydo == "digest":
return not digestgen(aalist, mysettings, overwrite=1,
myportdb=mydbapi)
- elif not emerge_skip_digest and not parallel_fetchonly and \
+ elif mydo != 'fetch' and not emerge_skip_digest and \
"digest" in mysettings.features:
+ # Don't do this when called by emerge or when called just
+ # for fetch (especially parallel-fetch) since it's not needed
+ # and it can interfere with parallel tasks.
digestgen(aalist, mysettings, overwrite=0, myportdb=mydbapi)
except portage.exception.PermissionDenied, e:
writemsg("!!! Permission Denied: %s\n" % (e,), noiselevel=-1)