From 292aefc477c3618599d60df18816cd7ef31e5bdd Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 10 Jun 2013 10:25:29 -0700 Subject: [PATCH] ovsdb-idlc: Write a new-line at the end of "annotate" output. Some tools do not like text files that lack a trailing new-line. In particular, Debian's dpkg-source utility complains about a missing new-line in the file generated by ovsdb-idlc: dpkg-source: warning: file openvswitch-1.9.2+git20130605/lib/vswitch-idl.ovsidl has no final newline (either original or modified version) This commit fixes the problem. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- ovsdb/ovsdb-idlc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in index 1f2195078..6d49dd68d 100755 --- a/ovsdb/ovsdb-idlc.in +++ b/ovsdb/ovsdb-idlc.in @@ -18,6 +18,7 @@ def annotateSchema(schemaFile, annotationFile): schemaJson = ovs.json.from_file(schemaFile) execfile(annotationFile, globals(), {"s": schemaJson}) ovs.json.to_stream(schemaJson, sys.stdout) + sys.stdout.write('\n') def constify(cType, const): if (const and cType.endswith('*') and not cType.endswith('**')): -- 2.43.0