1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-24 15:18:54 +02:00

make osc built in text meter display progress immediately

This commit is contained in:
Ludwig Nussel
2010-02-24 11:27:18 +01:00
parent 99d3147519
commit fd3977dc59
2 changed files with 5 additions and 7 deletions

View File

@@ -50,6 +50,9 @@ class TextMeter(BaseMeter):
self.sized_templ = '\r%%-%s.%ss %%3i%%%% |%%-%s.%ss| %%5sB %%8s ' %(width*4/10, width*4/10, self.bar_length, self.bar_length)
def _do_start(self, *args, **kwargs):
BaseMeter._do_start(self, *args, **kwargs)
self._do_update(0)
def _do_update(self, amount_read, now=None):
etime = self.re.elapsed_time()