Fixed bug when a feed is used for multiple interfaces
commit8725d4e5b9fc5a2d2b5fac315a56c303689df4c7
authorThomas Leonard <talex5@gmail.com>
Wed, 8 Aug 2012 06:00:42 +0000 (8 07:00 +0100)
committerThomas Leonard <talex5@gmail.com>
Fri, 10 Aug 2012 05:33:54 +0000 (10 06:33 +0100)
treeec6b8f8d47cd8cecb03a2c2e25d114e2cd2599a1
parentcc353e25d966e976be4c8f025626491a3fcf08f9
Fixed bug when a feed is used for multiple interfaces

If we rename an interface 'old' to 'new', we may want to import the contents of
'old' into 'new' using <feed>. If another feed depends on both interfaces (e.g.
version 1 depends on 'old' and version 2 depends on 'new') then there is a
problem: each <implementation> in 'old' belongs to two interfaces. This resulted
in a crash:

  File "../zeroinstall/injector/solver.py", line 466, in add_iface
    assert impl not in impl_to_var
  AssertionError
tests/Build.xml [new file with mode: 0644]
tests/Compiler-new.xml [new file with mode: 0644]
tests/testsolver.py
zeroinstall/injector/solver.py