Package zeroinstall :: Package injector :: Module model :: Class DistributionSource
[frames] | no frames]

Class DistributionSource

source code

     object --+    
              |    
RetrievalMethod --+
                  |
                 DistributionSource

A package that is installed using the distribution's tools (including PackageKit).

Instance Methods
 
__init__(self, package_id, size, install, needs_confirmation=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

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

Instance Variables
(handler.Handler) -> tasks.Blocker install
a function to call to install this package
bool needs_confirmation
whether the user should be asked to confirm before calling install()
str package_id
the package name, in a form recognised by the distribution's tools
int size
the download size in bytes
Properties

Inherited from object: __class__

Method Details

__init__(self, package_id, size, install, needs_confirmation=True)
(Constructor)

source code 

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

Parameters:
  • package_id (str)
  • needs_confirmation (bool)
  • size (int)
Overrides: object.__init__