diff options
author | michael-west <michael.west@ettus.com> | 2020-09-13 12:14:04 -0700 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2020-09-13 12:14:04 -0700 |
commit | 90ce6062b6b5df2eddeee723777be85108e4e7c7 (patch) | |
tree | ee928870e72c6c38f904169523dac4c398d9589a /tools/debs/convert_changelog.py | |
parent | 7c02eb0dd3c8d5e530dc93d35e27dbaacdff46c0 (diff) | |
download | uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7.tar.gz uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7.tar.bz2 uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7.zip |
Prepare branch for release
- Update CHANGELOG
- Update debian files
Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'tools/debs/convert_changelog.py')
-rwxr-xr-x | tools/debs/convert_changelog.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/debs/convert_changelog.py b/tools/debs/convert_changelog.py index b2a66228d..c7aaccbd1 100755 --- a/tools/debs/convert_changelog.py +++ b/tools/debs/convert_changelog.py @@ -28,7 +28,7 @@ import sys # Pass in first line of Debian changelog file, should contain last version def detect_last_version(line): - return convert_version_string(re.search("[0-9]+\.[0-9]+\.[0-9]", line).group(), False) + return convert_version_string(re.search("[0-9]+\.[0-9]+\.[0-9\.]+", line).group(), False) # "## 003.008.005" to "3.8.5" or vice versa def convert_version_string(version, to_debian=True): @@ -73,7 +73,9 @@ if __name__ == "__main__": lines_in = f.readlines() f.close() - lines_out = [] + f = open(options.output_file, "r") + lines_out = f.readlines() + f.close() g = open(options.output_file, "w") @@ -105,9 +107,10 @@ if __name__ == "__main__": 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 + + g = open(options.output_file, "w") for line in new_lines_out: g.write(line) g.close() |