apt.progress.text — Progress reporting for text interfaces¶
Progress reporting for text interfaces.
Acquire Progress Reporting¶
- class apt.progress.text.AcquireProgress(outfile: Optional[TextIOBase] = None)¶
AcquireProgress for the text interface.
- fail(item: AcquireItemDesc) None¶
Called when an item is failed.
- fetch(item: AcquireItemDesc) None¶
Called when some of the item’s data is fetched.
- ims_hit(item: AcquireItemDesc) None¶
Called when an item is update (e.g. not modified on the server).
- pulse(owner: Acquire) bool¶
Periodically invoked while the Acquire process is underway.
Return False if the user asked to cancel the whole Acquire process.
CD-ROM Progress Reporting¶
Operation Progress Reporting¶
- class apt.progress.text.OpProgress(outfile: Optional[TextIOBase] = None)¶
Operation progress reporting.
This closely resembles OpTextProgress in libapt-pkg.