[glib/glib-2-58: 3/5] gdbus-codegen: sort input files
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-58: 3/5] gdbus-codegen: sort input files
- Date: Mon, 17 Dec 2018 19:02:42 +0000 (UTC)
commit fe7b608fc349d6330d55607eed96dbeb55cb4891
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]