python-apt backend
These classes implement the backend interface.
python-apt backend implementation.
Tries to acquire package manager lock.
Returns: | True of lock has been acquired, False otherwise. |
---|
Downloads and installs the updates selected.
Parameters: |
|
---|
Returns a list containing UpdateManager.Backend.PackageInfoBase objects of available updates.
Parameter: | dist_upgrade – Defines whether to do a dist upgrade or not. |
---|
Checks if the package manager lock is held.
Parameter: | by_us – Defines whether to check if anyone holds the lock or if we hold the lock ourselves (default: False). |
---|---|
Returns: | Boolean indicating whether the lock is being held. |
Releases package manager lock.
Returns: | True if lock has been released, False otherwise. |
---|
Implementation of UpdateManager.Backend.PackageInfoBase.
These classes are pure helper classes and are unlikely to be useful outside this module.
Cache open progress helper.
Handles an update of the cache opening progress.
Parameter: | percent – Percentage done |
---|
Handle a completed item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle a failed item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle the start of fetching an item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle an already up-to-data item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handles a pulse from python-apt
Parameter: | items – Current items |
---|
Download progress helper
Handle a completed item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle a failed item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle a completed item.
Parameter: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handles a pulse from python-apt
Parameter: | items – Current items |
---|
Install progress helper
Config file question handling
Parameters: |
|
---|
Error handling
Parameters: |
|
---|
Fork handling.
This method uses the internal _fork_func variable to fork.
Status change handling
Parameters: |
|
---|