leapp/0010-Add-the-empty-newline-in-the-end-of-the-report-json-.patch

26 lines
841 B
Diff
Raw Normal View History

From 032c009af6b40ee75189371e5b08420205bd7381 Mon Sep 17 00:00:00 2001
From: Petr Stodulka <pstodulk@redhat.com>
Date: Fri, 5 May 2023 15:31:39 +0200
Subject: [PATCH 10/18] Add the empty newline in the end of the report json
file
Text files should have empty newline in the end of the file to be
POSIX compatible.
---
leapp/utils/report.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/leapp/utils/report.py b/leapp/utils/report.py
index 8ffbcd3..d24a177 100644
--- a/leapp/utils/report.py
+++ b/leapp/utils/report.py
@@ -171,3 +171,5 @@ def generate_report_file(messages_to_report, context, path, report_schema='1.1.0
# unicode object.
data = data.decode('utf-8')
f.write(data)
+ # append the empty new line to be POSIX compatible
+ f.write(u'\n')
--
2.41.0