Support several package implementations in feed for different distros
commit0b3d67ce4b3a155beb89798962a9d9412d23657c
authorThomas Leonard <talex5@gmail.com>
Sun, 7 Feb 2010 20:14:46 +0000 (7 20:14 +0000)
committerThomas Leonard <talex5@gmail.com>
Sun, 7 Feb 2010 20:51:26 +0000 (7 20:51 +0000)
tree7b13a2c697a40b9ccdea434665f348c96a1b665b
parent37457c54bd0bdac9f9ca2f0b1f9a617fa803fb83
Support several package implementations in feed for different distros

There is a new "distributions" attribute on <package-implementation>, which
is a space separated list of distribution names where the element applies.

Each Distribution object is given the chance to report how well these names
match the current distribution (for example, Ubuntu might report 1 for "Debian"
and 2 for "Ubuntu").

The highest scoring element(s) are then passed to
Distribution.get_package_info().
tests/testdistro.py
zeroinstall/injector/distro.py
zeroinstall/injector/model.py