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)
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
 
fixup(self, package, impl)
Some packages require special handling (e.g.
source code
 
installed_fixup(self, impl)
Called when an installed package is added (after fixup), or when installation completes.
source code
[zeroinstall.support.tasks.Blocker]
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, get_score, packagekit

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

Class Variables
str name = 'Debian'
the default value for Implementation.distro_name for our implementations
  cache_leaf = 'dpkg-status.cache'
Instance Variables

Inherited from Distribution: system_paths

Properties

Inherited from object: __class__

Method Details

__init__(self, dpkg_status)
(Constructor)

source code 

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

Parameters:
  • dpkg_status (str)
Overrides: object.__init__

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 - function for creating new DistributionImplementation objects from IDs
Overrides: Distribution.get_package_info

fixup(self, package, impl)

source code 

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.

Parameters:
Overrides: Distribution.fixup

installed_fixup(self, impl)

source code 

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.

Parameters:
Overrides: Distribution.installed_fixup

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.

Parameters:
Returns: [zeroinstall.support.tasks.Blocker]
a tasks.Blocker if the task is in progress, or None if not
Overrides: Distribution.fetch_candidates