diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-07-16 00:30:05 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-07-16 00:30:05 -0700 |
commit | a3ebf8f370ed20bcf419395b786aae2daccb5074 (patch) | |
tree | a5acb9c7fce15c5fcfbf01bf3e004b7247a7879d | |
parent | f07f8386e945b48358c11c121960e4833c539752 (diff) | |
download | portage-a3ebf8f370ed20bcf419395b786aae2daccb5074.tar.gz portage-a3ebf8f370ed20bcf419395b786aae2daccb5074.tar.bz2 portage-a3ebf8f370ed20bcf419395b786aae2daccb5074.zip |
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.
-rw-r--r-- | pym/_emerge/Scheduler.py | 5 |
1 files changed, 1 insertions, 4 deletions
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 |