From: Zac Medico Date: Sat, 16 Jul 2011 06:16:20 +0000 (-0700) Subject: EbuildBuild: use fetch queue to cap fetch threads X-Git-Tag: v2.2.0_alpha46~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f07f8386e945b48358c11c121960e4833c539752;p=portage.git EbuildBuild: use fetch queue to cap fetch threads This will fix bug #375331. --- diff --git a/pym/_emerge/EbuildBuild.py b/pym/_emerge/EbuildBuild.py index a678ede04..b6beb495b 100644 --- a/pym/_emerge/EbuildBuild.py +++ b/pym/_emerge/EbuildBuild.py @@ -172,7 +172,11 @@ class EbuildBuild(CompositeTask): logfile=self.settings.get('PORTAGE_LOG_FILE'), pkg=self.pkg, scheduler=self.scheduler) - self._start_task(fetcher, self._fetch_exit) + # Allow the Scheduler's fetch queue to control the + # number of concurrent fetchers. + fetcher.addExitListener(self._fetch_exit) + self._task_queued(fetcher) + self.scheduler.fetch.schedule(fetcher) def _fetch_exit(self, fetcher):