Skip to content
Snippets Groups Projects
Commit 2d7e73f2 authored by Craig Tiller's avatar Craig Tiller
Browse files

Preserve proto order

parent 7448d3d6
No related branches found
No related tags found
No related merge requests found
......@@ -33,9 +33,9 @@ def clean_elem(indict):
for name in ['public_headers', 'headers', 'src']:
if name not in indict: continue
inlist = indict[name]
protos = set(x for x in inlist if os.path.splitext(x)[1] == '.proto')
protos = list(x for x in inlist if os.path.splitext(x)[1] == '.proto')
others = set(x for x in inlist if x not in protos)
indict[name] = sorted(protos) + sorted(others)
indict[name] = protos + sorted(others)
return rebuild_as_ordered_dict(indict, _ELEM_KEYS)
for filename in sys.argv[1:]:
......
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