aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2018-05-16 10:46:06 -0700
committerMartin Braun <martin.braun@ettus.com>2018-05-16 15:15:39 -0700
commitdcad136fff520122eba392a7df2238c2fb73cf46 (patch)
tree1bfb4afb73554e612aadf6f5d74d00de4dd09b82 /tools
parentc364737dbe11b3a02f30fcbf4efd5e8ac313f3b7 (diff)
downloaduhd-dcad136fff520122eba392a7df2238c2fb73cf46.tar.gz
uhd-dcad136fff520122eba392a7df2238c2fb73cf46.tar.bz2
uhd-dcad136fff520122eba392a7df2238c2fb73cf46.zip
Debian: Fix convert_changelog.py tool
Diffstat (limited to 'tools')
-rwxr-xr-xtools/debs/convert_changelog.py11
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: