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

Class MacPortsDistribution

source code

    object --+        
             |        
  Distribution --+    
                 |    
CachedDistribution --+
                     |
                    MacPortsDistribution

Instance Methods
 
__init__(self, db_status_file)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
generate_cache(self) source code
 
get_package_info(self, package, factory)
Get information about the given package.
source code
int
get_score(self, distro_name) source code

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

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

Class Variables
[str] system_paths = ['/opt/local/bin']
list of paths to search for binaries (we MUST NOT find 0install launchers, so only include directories where system packages install binaries - e.g.
str name = 'MacPorts'
the default value for Implementation.distro_name for our implementations
  cache_leaf = 'macports-status.cache'
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__

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

get_score(self, distro_name)

source code 
Returns: int
Overrides: Distribution.get_score
(inherited documentation)