Added support for <command> element
commitf18a45450d8b761a9ce841937432b7d95036a805
authorThomas Leonard <talex5@gmail.com>
Sat, 30 Oct 2010 11:20:19 +0000 (30 12:20 +0100)
committerThomas Leonard <talex5@gmail.com>
Sun, 14 Nov 2010 16:01:53 +0000 (14 16:01 +0000)
tree60a487e76c3c34191caa49ce958d2d8e804ab900
parent3c80ac5c122b8cd38c78347cd0b383afad7f900f
Added support for <command> element

This is a generalisation of the 'main', 'self-test' and 'compile:command' attributes.

Some side effects of this:

- You can no longer get selections if the root has no main command. Before, this was only detected when running.
- We now select the best candidate *that can be run*. Before, we selected the best candidate and then failed if it wasn't runnable.
- We only check that the main path is relative when running, not when loading (this is so that other runners can have other rules)
24 files changed:
tests/Binary.xml
tests/Command.xml [new file with mode: 0644]
tests/Compiler.xml
tests/Langs.xml
tests/MultiArch.xml
tests/Ranking.xml
tests/Recursive.xml
tests/Source.xml
tests/testautopolicy.py
tests/testdownload.py
tests/testlaunch.py
tests/testmodel.py
tests/testpolicy.py
tests/testreader.py
tests/testsat.py
tests/testselections.py
tests/testsolver.py
zeroinstall/injector/model.py
zeroinstall/injector/policy.py
zeroinstall/injector/qdom.py
zeroinstall/injector/run.py
zeroinstall/injector/sat.py
zeroinstall/injector/selections.py
zeroinstall/injector/solver.py