示例#1
0
 def update_status(self, uri, descr, shortDescr, status):
     FetchProgress.update_status(self, uri, descr, shortDescr, status)
     #logging.debug("Fetch: updateStatus %s %s" % (uri, status))
     if status == apt_pkg.STAT_DONE:
         print "fetched %s (%.2f/100) at %sb/s" % (
             uri, self.percent, apt_pkg.size_to_str(int(self.current_cps)))
         if sys.stdout.isatty():
             sys.stdout.flush()
 def pulse(self, owner):
     apt.progress.text.AcquireProgress.pulse(self, owner)
     FetchProgress.pulse(self, owner)
     return True
 def pulse(self, owner):
     apt.progress.text.AcquireProgress.pulse(self, owner)
     FetchProgress.pulse(self, owner)
     return True
 def __init__(self):
     apt.progress.text.AcquireProgress.__init__(self)
     FetchProgress.__init__(self)
 def __init__(self):
     apt.progress.text.AcquireProgress.__init__(self)
     FetchProgress.__init__(self)