From 75153eb6436d0cc00679056ff8e916c6d99057ad Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sun, 24 Aug 2014 16:31:17 +0400 Subject: [PATCH] dsdlc: Fixed deoendency include order --- libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py b/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py index 98f5e3c4be..88b4def241 100644 --- a/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py +++ b/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py @@ -173,7 +173,7 @@ def generate_one_type(template_expander, t): return type_output_filename(t) if t.category == t.CATEGORY_ARRAY: return detect_include(t.value_type) - return set(filter(None, [detect_include(x.type) for x in fields])) + return list(sorted(set(filter(None, [detect_include(x.type) for x in fields])))) if t.kind == t.KIND_MESSAGE: t.cpp_includes = fields_includes(t.fields)