From 4787037b2c6642c31312dd49f1a643bac2532ebe Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Thu, 18 Oct 2012 13:40:23 +0300 Subject: [PATCH] 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. --- image_creator/output/cli.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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', -- 1.7.10.4