summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-07-20 20:23:16 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-07-20 20:23:16 +0000
commit8a5f5efe6d0261d451f71ccc13c297c1a3fc9323 (patch)
tree3a3bc6062329a36107565a13e07345045c41a228
parent42dbc8067534ae2f8183a6bc69202fb08c81a4aa (diff)
downloadportage-8a5f5efe6d0261d451f71ccc13c297c1a3fc9323.tar.gz
portage-8a5f5efe6d0261d451f71ccc13c297c1a3fc9323.tar.bz2
portage-8a5f5efe6d0261d451f71ccc13c297c1a3fc9323.zip
Fix Scheduler bug:
the scheduler was adding prefetcher even for uninstall tasks svn path=/main/trunk/; revision=13838
-rw-r--r--pym/_emerge/Scheduler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index 5c665df6d..5eeb17e99 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -637,6 +637,8 @@ class Scheduler(PollScheduler):
# at the beginning, which annoy users, never
# spawn a prefetcher for the first package.
for pkg in self._mergelist[1:]:
+ if pkg.operation == "uninstall":
+ continue
prefetcher = self._create_prefetcher(pkg)
if prefetcher is not None:
self._task_queues.fetch.add(prefetcher)