From: Zac Medico Date: Sat, 16 Jul 2011 07:30:05 +0000 (-0700) Subject: Scheduler: enable prefetch for first package X-Git-Tag: v2.2.0_alpha46~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3ebf8f370ed20bcf419395b786aae2daccb5074;p=portage.git Scheduler: enable prefetch for first package Since commit f07f8386e945b48358c11c121960e4833c539752, the first will have to wait for later ones to fetch unless we start its prefetcher first. --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index ad276e9bc..135e37a2f 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -745,10 +745,7 @@ class Scheduler(PollScheduler): prefetchers = self._prefetchers getbinpkg = "--getbinpkg" in self.myopts - # In order to avoid "waiting for lock" messages - # at the beginning, which annoy users, never - # spawn a prefetcher for the first package. - for pkg in self._mergelist[1:]: + for pkg in self._mergelist: # mergelist can contain solved Blocker instances if not isinstance(pkg, Package) or pkg.operation == "uninstall": continue