[glib: 3/5] gdbus-codegen: sort input files
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/5] gdbus-codegen: sort input files
- Date: Tue, 11 Dec 2018 12:25:58 +0000 (UTC)
commit d946bff4800c919d50a70e1770066aa42bc38e36
Author: Will Thompson <will willthompson co uk>
Date: Mon Dec 10 13:40:11 2018 +0000
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]