From dcad136fff520122eba392a7df2238c2fb73cf46 Mon Sep 17 00:00:00 2001 From: michael-west Date: Wed, 16 May 2018 10:46:06 -0700 Subject: Debian: Fix convert_changelog.py tool --- tools/debs/convert_changelog.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/debs/convert_changelog.py b/tools/debs/convert_changelog.py index eaad680fa..1ea486881 100755 --- a/tools/debs/convert_changelog.py +++ b/tools/debs/convert_changelog.py @@ -77,13 +77,7 @@ if __name__ == "__main__": lines_in = f.readlines() f.close() - # Output file - if os.path.exists(os.path.normpath(options.output_file)): - g = open(options.output_file, "r") - lines_out = g.readlines() - g.close() - else: - lines_out = [] + lines_out = [] g = open(options.output_file, "w") @@ -113,6 +107,9 @@ if __name__ == "__main__": else: # Actual changes new_lines_out += [" " + line] + # Final footer + new_lines_out += ["\n"] + new_lines_out += [get_footer(options.uploader_name, options.uploader_email)] new_lines_out += lines_out for line in new_lines_out: -- cgit v1.2.3