Combine prefetch conditionals in EbuildFetcher.
authorZac Medico <zmedico@gentoo.org>
Thu, 9 Sep 2010 17:13:23 +0000 (10:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 9 Sep 2010 17:13:23 +0000 (10:13 -0700)
pym/_emerge/EbuildFetcher.py

index 87c82db586051aa1b02c617169cf601d6a8b3647..191d56ee7ae685bce1f6d71079adf429e8a0c9df 100644 (file)
@@ -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")