gdbus-codegen: sort input files

This means the output (including lists of filenames) does not depend on
the order of the input files, which may matter if this tool is invoked
with a glob or some other mechanism that doesn't guarantee an order.
This commit is contained in:
Will Thompson 2018-12-10 13:40:11 +00:00
parent deafd7256e
commit d946bff480
No known key found for this signature in database
GPG Key ID: 3422DC0D7AD482A7

View File

@ -235,7 +235,7 @@ def codegen_main():
all_ifaces = []
input_files_basenames = []
for fname in args.files + args.xml_files:
for fname in sorted(args.files + args.xml_files):
with open(fname, 'rb') as f:
xml_data = f.read()
parsed_ifaces = parser.parse_dbus_xml(xml_data)