diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-27 10:05:44 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-27 10:05:44 -0700 |
commit | 60e15f59ad0e54cd010d2266d699b95b035e8e47 (patch) | |
tree | 3c5fb96d71e861ee292d34866096546a9fa04a49 | |
parent | d72781de39b0ea018cbb117036c22246c92cd254 (diff) | |
download | portage-60e15f59ad0e54cd010d2266d699b95b035e8e47.tar.gz portage-60e15f59ad0e54cd010d2266d699b95b035e8e47.tar.bz2 portage-60e15f59ad0e54cd010d2266d699b95b035e8e47.zip |
Scheduler: eliminate redundant display calls
-rw-r--r-- | pym/_emerge/Scheduler.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index dfa73c948..f934e04df 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -338,7 +338,12 @@ class Scheduler(PollScheduler): elif timeout <= self._max_display_latency: PollScheduler._poll(self, timeout=timeout) - self._status_display.display() + if timeout == 0: + # The display is updated by _schedule() above, so it would be + # redundant to update it here when timeout is 0. + pass + else: + self._status_display.display() else: remaining_timeout = timeout |