Scheduler: enable prefetch for first package
authorZac Medico <zmedico@gentoo.org>
Sat, 16 Jul 2011 07:30:05 +0000 (00:30 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 16 Jul 2011 07:30:05 +0000 (00:30 -0700)
Since commit f07f8386e945b48358c11c121960e4833c539752, the first will
have to wait for later ones to fetch unless we start its prefetcher
first.

pym/_emerge/Scheduler.py

index ad276e9bc6746bcdae4053cab40617557a5d568f..135e37a2fa44de141ae2768fb47c447c66dda741 100644 (file)
@@ -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