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

Class CachedDistribution

source code

  object --+    
           |    
Distribution --+
               |
              CachedDistribution

For distributions where querying the package database is slow (e.g. requires running an external command), we cache the results.


Since: 0.39

Deprecated: use Cache instead

Instance Methods
 
__init__(self, db_status_file)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from Distribution: fetch_candidates, fixup, get_feed, get_package_info, get_score, installed_fixup, packagekit

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

Instance Variables

Inherited from Distribution: name, system_paths

Properties

Inherited from object: __class__

Method Details

__init__(self, db_status_file)
(Constructor)

source code 

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

Parameters:
  • db_status_file (str) - update the cache when the timestamp of this file changes
Overrides: object.__init__