diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-19 12:30:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-19 12:30:53 +0000 |
commit | 6cc52fd2cd284951ec56ef1da96bc4b6ebb77acb (patch) | |
tree | b444a53ef8d199634cd99c14e759279aa1760509 | |
parent | 18d9229f7eabc568a78f9cda1b1cad186bfa4134 (diff) | |
download | portage-6cc52fd2cd284951ec56ef1da96bc4b6ebb77acb.tar.gz portage-6cc52fd2cd284951ec56ef1da96bc4b6ebb77acb.tar.bz2 portage-6cc52fd2cd284951ec56ef1da96bc4b6ebb77acb.zip |
Use the memoized _choose_pkg() result to return earlier from
_schedule_tasks() when possible.
svn path=/main/trunk/; revision=11140
-rw-r--r-- | pym/_emerge/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index f0c36e458..d8583f9d5 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -9460,7 +9460,8 @@ class Scheduler(PollScheduler): state_change = 0 - while self._can_add_job(): + while not self._choose_pkg_return_early and \ + self._can_add_job(): if not self._pkg_queue or self._failed_pkgs: return (False, state_change) |