Remove the goto(1) empty progress bar workaround
authorNikos Skalkotos <skalkoto@grnet.gr>
Thu, 18 Oct 2012 10:40:23 +0000 (13:40 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Thu, 18 Oct 2012 10:40:23 +0000 (13:40 +0300)
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
setup.py

index 91191cf..211eb04 100644 (file)
@@ -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)
index d02873e..ee15b44 100755 (executable)
--- 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',