From: Nikos Skalkotos Date: Thu, 18 Oct 2012 10:40:23 +0000 (+0300) Subject: Remove the goto(1) empty progress bar workaround X-Git-Tag: v0.1~11 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/4787037b2c6642c31312dd49f1a643bac2532ebe Remove the goto(1) empty progress bar workaround Add progress >= 1.0.2 as install_dependency, since this is the version that fixed the empty progress bar problem. --- diff --git a/image_creator/output/cli.py b/image_creator/output/cli.py index 91191cf..211eb04 100644 --- a/image_creator/output/cli.py +++ b/image_creator/output/cli.py @@ -111,8 +111,8 @@ class OutputWthProgress(SimpleOutput): self.suffix = self.template[bar_type] self.max = size - # print empty progress bar workaround - self.goto(1) + # print empty progress bar + self.start() def success(self, result): self.output.output("\r%s...\033[K" % self.title, False) diff --git a/setup.py b/setup.py index d02873e..ee15b44 100755 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ setup( license='BSD', packages=find_packages(), include_package_data=True, - install_requires=['pbs', 'ansicolors', 'progress', 'pysendfile'], + install_requires=['pbs', 'ansicolors', 'progress>=1.0.2', 'pysendfile'], entry_points={ 'console_scripts': [ 'snf-image-creator = image_creator.main:main',