diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-09-12 21:49:31 +0300 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-12 20:49:31 +0200 |
commit | 43e91b0f2ab017c82df778a82e3ed869d84d1190 (patch) | |
tree | e86013cb17310a6764d53dd3fd5e2100c3e34943 /.travis/package_management | |
parent | f02a628e4dc00f7016f8310713edcd52b3cb909d (diff) |
netdata/packaging: we didnt fix changelog handling, fixes and nits now (#6837)
1) We missed a dot when reconstructing since_version
2) When we are on a patch release, just step back to fetch history from the previous patch release (or last minor release, respectively)
Diffstat (limited to '.travis/package_management')
-rwxr-xr-x | .travis/package_management/trigger_deb_lxc_build.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.travis/package_management/trigger_deb_lxc_build.py b/.travis/package_management/trigger_deb_lxc_build.py index 46b64e6a95..464a7715f9 100755 --- a/.travis/package_management/trigger_deb_lxc_build.py +++ b/.travis/package_management/trigger_deb_lxc_build.py @@ -57,8 +57,13 @@ print("Checking version consistency") since_version = os.environ["LATEST_RELEASE_VERSION"] if str(since_version).replace('v', '') == str(new_version) and str(new_version).count('.') == 2: s = since_version.split('.') - prev = str(int(s[1]) - 1) - since_version = s[0] + '.' + prev + s[2] + if int(s[2]) > 0: + patch_prev = str(int(s[2]) - 1) + since_version = s[0] + '.' + s[1] + '.' + patch_prev + else: + prev = str(int(s[1]) - 1) + since_version = s[0] + '.' + prev + '.' + s[2] + print("We seem to be building a new stable release, reduce by one since_version option. New since_version:%s" % since_version) print("Fixing changelog tags") |