Skip to content

Commit 410ec09

Browse files
committed
Debian: Fix convert_changelog.py tool
1 parent 208785b commit 410ec09

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tools/debs/convert_changelog.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,7 @@ def get_footer(uploader_name, uploader_email):
7777
lines_in = f.readlines()
7878
f.close()
7979

80-
# Output file
81-
if os.path.exists(os.path.normpath(options.output_file)):
82-
g = open(options.output_file, "r")
83-
lines_out = g.readlines()
84-
g.close()
85-
else:
86-
lines_out = []
80+
lines_out = []
8781

8882
g = open(options.output_file, "w")
8983

@@ -113,6 +107,9 @@ def get_footer(uploader_name, uploader_email):
113107
else:
114108
# Actual changes
115109
new_lines_out += [" " + line]
110+
# Final footer
111+
new_lines_out += ["\n"]
112+
new_lines_out += [get_footer(options.uploader_name, options.uploader_email)]
116113

117114
new_lines_out += lines_out
118115
for line in new_lines_out:

0 commit comments

Comments
 (0)