Fix Scheduler bug:
authorMounir Lamouri <volkmar@gentoo.org>
Mon, 20 Jul 2009 20:23:16 +0000 (20:23 -0000)
committerMounir Lamouri <volkmar@gentoo.org>
Mon, 20 Jul 2009 20:23:16 +0000 (20:23 -0000)
the scheduler was adding prefetcher even for uninstall tasks

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

pym/_emerge/Scheduler.py

index 5c665df6dd27566e1efc177f44f6a3f7f5321714..5eeb17e9929c22f510fdba52b01b4b23b5073e4c 100644 (file)
@@ -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)