| Server IP : 77.68.64.21 / Your IP : 216.73.217.145 Web Server : Apache System : Linux hp3-wp-1011352.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64 User : csh2516497 ( 2094697) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.7/site-packages/packagekit/ |
Upload File : |
�
�^c @ sR y d d l m Z Wn! e k
r7 d d l m Z n Xd e f d � � YZ d S( i����( t Iterablet PackagekitProgressc B sG e Z d Z d d � Z d � Z d � Z d � Z d � Z d � Z RS( s%
Progress class there controls the total progress of a transaction
the transaction is divided in n milestones. the class contains
the current step (milestone n -> n+1) and the percentage of the whole transaction
Usage:
from packagekit import PackagekitProgress
steps = [10, 30, 50, 70] # Milestones in %
progress = PackagekitProgress(steps)
for milestone in progress:
# do the action is this step
for i in range(100):
# do some action
print "progress : %s " % milestone
c C s7 t t | � j � | s&