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

Package injector

source code

Code relating to interfaces and policies.

To run a program, the following steps are typical:

  1. Create some requirements.Requirements, giving the root interface's URI.
  2. Instantiate a driver.Driver, giving it the requirements
  3. Ask the driver to choose a set of implementations.
    1. The driver will try to find a compatible set of implementations that meet the user's policy and work on the current architecture, using a solve.Solver.
    2. The solver looks up feeds in the iface_cache.
    3. The driver will fetch any feeds that are missing.
    4. The cached or downloaded XML is parsed into a model using the reader module.
  4. Download the selected implementations and zerostore.unpack into the zerostore.
  5. Finally, run the program.

The cli module provides the 0launch command-line interface.

Submodules