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

Class DebianDistribution

source code

  object --+    
           |    
Distribution --+
               |
              DebianDistribution

A dpkg-based distribution.

Instance Methods
 
__init__(self, dpkg_status, pkgcache)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_package_info(self, package, factory)
Get information about the given package.
source code
int | None
get_score(self, disto_name)
Indicate how closely the host distribution matches this one.
source code
 
fetch_candidates(self, master_feed)
Collect information about versions we could install using the distribution's package manager.
source code

Inherited from Distribution: get_feed, packagekit

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  cache_leaf = 'dpkg-status.cache'
Properties

Inherited from object: __class__

Method Details

__init__(self, dpkg_status, pkgcache)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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 - package name (e.g. "gimp")
  • factory - function for creating new DistributionImplementation objects from IDs
Overrides: Distribution.get_package_info
(inherited documentation)

get_score(self, disto_name)

source code 

Indicate how closely the host distribution matches this one. The <package-implementation> with the highest score is passed to Distribution.get_package_info. If several elements get the same score, get_package_info is called for all of them.

Parameters:
  • distribution - a distribution name
Returns: int | None
an integer, or None if there is no match at all
Overrides: Distribution.get_score
(inherited documentation)

fetch_candidates(self, master_feed)

source code 

Collect information about versions we could install using the distribution's package manager. On success, the distribution feed in iface_cache is updated.

Returns:
a tasks.Blocker if the task is in progress, or None if not
Overrides: Distribution.fetch_candidates
(inherited documentation)