Commit 94b9ee54 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix previous commit

parent fae595c2
Pipeline #6826 passed with stage
in 41 seconds
......@@ -1183,8 +1183,8 @@ def ordered_projects():
# Ensure that py-XX is after XX
switch = []
for i, (cat, pkg) in enumerate(lst):
main = (cat, pkg[3:])
for i, (cat, pkg, ns) in enumerate(lst):
main = (cat, pkg[3:], ns)
if pkg.startswith('py-') and main in lst and i < lst.index(main):
switch.append((i, lst.index(main)))
for old, new in switch:
......@@ -1193,8 +1193,8 @@ def ordered_projects():
# py-example-robot-data depends on py-pinocchio
# even though pinocchio could depend on example-robot-data
example = lst.index(('wip', 'py-example-robot-data'))
pinocchio = lst.index(('math', 'py-pinocchio'))
example = lst.index(('wip', 'py-example-robot-data', 'gepetto'))
pinocchio = lst.index(('math', 'py-pinocchio', 'stack-of-tasks'))
example = lst.pop(example)
lst.insert(pinocchio, example)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment