python-apt backend
These classes implement the backend interface.
python-apt backend implementation.
Aborts a fetch operation.
Tries to acquire package manager lock.
Returns: | True of lock has been acquired, False otherwise. |
---|
Downloads and installs the updates selected.
Parameters: |
|
---|
Reloads the package list(s).
Returns a list containing UpdateManager.Backend.PackageInfoBase objects of available updates.
Parameters: | dist_upgrade – Defines whether to do a dist upgrade or not. |
---|
Checks if the package manager lock is held.
Parameters: | 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. |
---|
Reloads the package cache.
Implementation of UpdateManager.Backend.PackageInfoStoreBase.
Implementation of UpdateManager.Backend.PackageDependencyBase.
Implementation of UpdateManager.Backend.PackageInfoBase.
Returns true if the origin is trusted
Returns the archive name
Returns the component name
Returns the origin label
Returns the origin name
Returns the candidate uri
Returns the candidate version
Returns list of conflicting packages
Returns the list of dependencies
Returns the package description
Returns the download size in bytes
Returns the installed version
Returns the package name
Returns list of reverse dependencies (packages that depend on this package).
Returns the source package name
Returns the list of strict dependencies (packages with an exact version this candidate depends on).
Returns list of strict reverse dependencies (packages that depend on the candidate version of this package).
Returns the package summary (short description)
Returns a list of dependencies that are not installed.
Returns the update category
Returns whether the package is broken or not
Returns whether the package is installed or not
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.
Parameters: | percent – Percentage done |
---|
Handles an abort notification from the UI
Handle a completed item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle a failed item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle the start of fetching an item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle an already up-to-data item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handles a pulse from python-apt
Parameters: | items – Current items |
---|
Download progress helper
Handles an abort notification from the UI
Handle a completed item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle a failed item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handle a completed item.
Parameters: | item – An apt_pkg.AcquireItemDesc object describing the item. |
---|
Handles a pulse from python-apt
Parameters: | items – Current items |
---|
Stop handler. Sends out notifications when downloading has stopped (but was not aborted).
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: |
|
---|
Helper function that translates a given relation string to a relation constant (UpdateManager.Backend.DEP_RELATION).