diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-01-31 20:06:02 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-01-31 20:07:57 -0800 |
commit | 2d7e73f2fa89abcbdb603ee23a5d1a0b6112f62a (patch) | |
tree | 8a4d801eca840b30ca983faa012e073012720817 /tools/buildgen/build-cleaner.py | |
parent | 7448d3d69e706da3cdf7bf6b81f71955717e4a53 (diff) |
Preserve proto order
Diffstat (limited to 'tools/buildgen/build-cleaner.py')
-rwxr-xr-x | tools/buildgen/build-cleaner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/buildgen/build-cleaner.py b/tools/buildgen/build-cleaner.py index f9307360c3..4992beb897 100755 --- a/tools/buildgen/build-cleaner.py +++ b/tools/buildgen/build-cleaner.py @@ -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:]: |