diff options
-rwxr-xr-x | tools/debs/convert_changelog.py | 11 |
1 files 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: |