Home | Trees | Indices | Help |
|
---|
|
object --+ | Distribution
Represents a distribution with which we can integrate. Sub-classes should specialise this to integrate with the package managers of particular distributions. This base class ignores the native package manager.
Since: 0.28
Instance Methods | |||
|
|||
model.ZeroInstallFeed |
|
||
|
|||
packagekit.PackageKit |
|
||
|
|||
|
|||
int |
|
||
Inherited from |
Instance Variables | |
str |
name = "fallback" the default value for Implementation.distro_name for our implementations |
[str] |
system_paths = ['/usr/bin', '/bin', '/usr/sbin', '/sbin'] list of paths to search for binaries (we MUST NOT find 0install launchers, so only include directories where system packages install binaries - e.g. |
Properties | |
Inherited from |
Method Details |
Get information about the given package. Add zero or more implementations using the factory (typically at most two will be added; the currently installed version and the latest available).
|
Generate a feed containing information about distribution packages. This should immediately return a feed containing an implementation for the package if it's already installed. Information about versions that could be installed using the distribution's package manager can be added asynchronously later (see fetch_candidates).
|
Collect information about versions we could install using the distribution's package manager. On success, the distribution feed in iface_cache is updated.
|
For use by subclasses.
|
Some packages require special handling (e.g. Java). This is called for each package that was added by get_package_info after it returns. The default method does nothing.
|
Called when an installed package is added (after fixup), or when installation completes. This is useful to fix up the main value. The default implementation checks that main exists, and searches Distribution.system_paths for it if not.
Since: 1.11 |
|
Instance Variable Details |
system_pathslist of paths to search for binaries (we MUST NOT find 0install launchers, so only include directories where system packages install binaries - e.g. /usr/bin but not /usr/local/bin)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 26 18:14:06 2013 | http://epydoc.sourceforge.net |