mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
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:
parent
deafd7256e
commit
d946bff480
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user