summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-06 20:12:20 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-06 20:12:20 +0000
commita011c5ea5160b906f172347341b488c19ca74ed0 (patch)
treefc8becc74b2959d0c2caf77302238f9474acd78e
parent241e9cdb1bc3e0b6878019c1730edb4bc2809821 (diff)
downloadportage-a011c5ea5160b906f172347341b488c19ca74ed0.tar.gz
portage-a011c5ea5160b906f172347341b488c19ca74ed0.tar.bz2
portage-a011c5ea5160b906f172347341b488c19ca74ed0.zip
In order to avoid "waiting for lock" messages
at the beginning, which annoy users, never spawn a prefetcher for the first package. svn path=/main/trunk/; revision=11642
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 910e518d9..582255d4d 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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)