Package zeroinstall :: Package injector :: Module distro :: Class Distribution
[frames] | no frames]

Class Distribution

source code

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
 
get_package_info(self, package, factory)
Get information about the given package.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

get_package_info(self, package, factory)

source code 

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).

Parameters:
  • package (str) - package name (e.g. "gimp")
  • factory (str -> model.DistributionImplementation) - function for creating new DistributionImplementation objects from IDs