Skip to content
Snippets Groups Projects
Commit 73b46a92 authored by Matthew LeGendre's avatar Matthew LeGendre
Browse files

Fix concretize bug where provider sort couldn't handle version ranges

parent 9f36ae4e
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,11 @@ def cmp_externals(a, b):
not b.external and b.external_module):
# We're choosing between different providers, so
# maintain order from provider sort
return candidates.index(a) - candidates.index(b)
index_of_a = next(i for i in range(0, len(candidates)) \
if a.satisfies(candidates[i]))
index_of_b = next(i for i in range(0, len(candidates)) \
if b.satisfies(candidates[i]))
return index_of_a - index_of_b
result = cmp_specs(a, b)
if result != 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment