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

Module distro

source code

Integration with native distribution package managers.


Since: 0.28

Classes
  Distribution
Represents a distribution with which we can integrate.
  DebianDistribution
An dpkg-based distribution.
  RPMDistribution
An RPM-based distribution.
Functions
str
try_cleanup_distro_version(version)
Try to turn a distribution version string into one readable by Zero Install.
source code
Distribution
get_host_distribution()
Get a Distribution suitable for the host operating system.
source code
Function Details

try_cleanup_distro_version(version)

source code 

Try to turn a distribution version string into one readable by Zero Install. We do this by stripping off anything we can't parse.

Returns: str
the part we understood, or None if we couldn't parse anything

get_host_distribution()

source code 

Get a Distribution suitable for the host operating system. Calling this twice will return the same object.

Returns: Distribution