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

Class RPMDistribution

source code

  object --+    
           |    
Distribution --+
               |
              RPMDistribution

An RPM-based distribution.

Instance Methods
 
__init__(self, db_dir)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
load_cache(self) source code
 
generate_cache(self) source code
 
get_package_info(self, package, factory)
Get information about the given package.
source code

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

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

Inherited from object: __class__

Method Details

__init__(self, db_dir)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ 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)