summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-09 10:13:23 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-09 10:13:23 -0700
commit20375de40f06e9298fe6b18dad0b0a36d1b59ec6 (patch)
treea8140f75a633001150870bbb51aa0e8048495318
parent5f475f87892a950022d9310d879d2db38a6eda2f (diff)
downloadportage-20375de40f06e9298fe6b18dad0b0a36d1b59ec6.tar.gz
portage-20375de40f06e9298fe6b18dad0b0a36d1b59ec6.tar.bz2
portage-20375de40f06e9298fe6b18dad0b0a36d1b59ec6.zip
Combine prefetch conditionals in EbuildFetcher.
-rw-r--r--pym/_emerge/EbuildFetcher.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index 87c82db58..191d56ee7 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -66,6 +66,7 @@ class EbuildFetcher(SpawnProcess):
nocolor = settings.get("NOCOLOR")
if self.prefetch:
+ fetch_env["PORTAGE_PARALLEL_FETCHONLY"] = "1"
# prefetch always outputs to a log, so
# always disable color
nocolor = "true"
@@ -74,8 +75,6 @@ class EbuildFetcher(SpawnProcess):
fetch_env["NOCOLOR"] = nocolor
fetch_env["PORTAGE_NICENESS"] = "0"
- if self.prefetch:
- fetch_env["PORTAGE_PARALLEL_FETCHONLY"] = "1"
ebuild_binary = os.path.join(
settings["PORTAGE_BIN_PATH"], "ebuild")