From d946bff4800c919d50a70e1770066aa42bc38e36 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 10 Dec 2018 13:40:11 +0000 Subject: [PATCH] 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. --- gio/gdbus-2.0/codegen/codegen_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py index 880ff3932..7683f0af5 100644 --- a/gio/gdbus-2.0/codegen/codegen_main.py +++ b/gio/gdbus-2.0/codegen/codegen_main.py @@ -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)