projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d72781d
)
Scheduler: eliminate redundant display calls
author
Zac Medico
<zmedico@gentoo.org>
Wed, 27 Oct 2010 17:05:44 +0000
(10:05 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 27 Oct 2010 17:05:44 +0000
(10:05 -0700)
pym/_emerge/Scheduler.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/Scheduler.py
b/pym/_emerge/Scheduler.py
index dfa73c94879ab73912832e57cdac9ee4449e6d99..f934e04df738cb50faea3b5fb85d72c43f496335 100644
(file)
--- 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