[packagekit] packagekit.progress.py

zodman zodman at gmail.com
Wed Feb 18 00:52:11 PST 2009


Im play with it but im confuse:

from the code

if i set progress.set_step( [10, 30, 50, 70] )


print start at 0% end 30% doing a progress.step() ( 100 prints )
then
start at 10% end 50% do a progress.step()

start at 30% end 70% step()

start at 50% end 100% step ()

??????????????????

its that correct this ?¿


=========================================

this patch:

--- a/lib/python/packagekit/progress.py
+++ b/lib/python/packagekit/progress.py
@@ -89,7 +89,7 @@ class PackagekitProgress:
          if self.current_step == 0:
              startpct = 0
          else:
-            startpct = self.steps[self.current_step-1]
+            startpct = self.steps[self.current_step]
          if self.current_step < len(self.steps)-1:
              endpct = self.steps[self.current_step+1]
          else:




if i set progress.set_step( [10, 30, 50, 70] )


print start at 0% end 10% doing a progress.step() ( 100 prints )
then
start at 10% end 30% do a progress.step()

start at 50% end 70% step()

start at 70% end 100% step()




More information about the PackageKit mailing list