callback
Progress display callback classes for the yum command line.
RPMInstallCallback
-
class callback.RPMInstallCallback(output=1)
Yum command line callback class for callbacks from the RPM library.
-
callback(what, bytes, total, h, user)
Handle callbacks from the RPM library.
Parameters: |
- what – number identifying the type of callback
- bytes – the number of bytes associated with the
callback; the exact meaning depends on the type of
the callback. For example, for a RPMCALLBACK_INST_PROGRESS
callback, bytes will represent the current amount of work done
- total – the total amount of work associated with the
callback; the exact meaning depends on the type of the
callback. For example, total may represent the total
number of transactions in a transaction set
- h – a package object or string identifying the package
involved in the callback
- user – unused
|