In order to avoid "waiting for lock" messages
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Oct 2008 20:12:20 +0000 (20:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Oct 2008 20:12:20 +0000 (20:12 -0000)
at the beginning, which annoy users, never
spawn a prefetcher for the first package.

svn path=/main/trunk/; revision=11642

pym/_emerge/__init__.py

index 910e518d93772b9d30d13e33410b3d321486301d..582255d4dfe1f7b90a3b081b580af8554c49585a 100644 (file)
@@ -9348,7 +9348,10 @@ class Scheduler(PollScheduler):
                        prefetchers = self._prefetchers
                        getbinpkg = "--getbinpkg" in self.myopts
 
-                       for pkg in self._mergelist:
+                       # 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:]:
                                prefetcher = self._create_prefetcher(pkg)
                                if prefetcher is not None:
                                        self._task_queues.fetch.add(prefetcher)