From: Zac Medico Date: Wed, 27 Oct 2010 17:05:44 +0000 (-0700) Subject: Scheduler: eliminate redundant display calls X-Git-Tag: v2.1.9.23~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4ff8330ac7f64e7268fe8b4a226395e5dfb1109;p=portage.git Scheduler: eliminate redundant display calls --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index a6662a1d0..573f1b6ee 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