aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/update-version.py
diff options
context:
space:
mode:
authorshirt-dev <2660574+shirt-dev@users.noreply.github.com>2021-02-09 07:34:00 -0500
committerGitHub <noreply@github.com>2021-02-09 18:04:00 +0530
commit3dd264bf423543e8d3d5394a38cd79007f1a59f8 (patch)
tree2bb8b4071d8c9b5fa53338a1b0fdafc0ab39849a /devscripts/update-version.py
parentefabc161652d2427c2fe5ccff6c944e91ea12ca0 (diff)
downloadhypervideo-pre-3dd264bf423543e8d3d5394a38cd79007f1a59f8.tar.lz
hypervideo-pre-3dd264bf423543e8d3d5394a38cd79007f1a59f8.tar.xz
hypervideo-pre-3dd264bf423543e8d3d5394a38cd79007f1a59f8.zip
#64 Implement self updater
Co-authored-by: shirtjs <2660574+shirtjs@users.noreply.github.com> (shirt-dev) Co-authored-by: pukkandan <pukkandan@gmail.com>
Diffstat (limited to 'devscripts/update-version.py')
-rw-r--r--devscripts/update-version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devscripts/update-version.py b/devscripts/update-version.py
index c9698875a..38dea0862 100644
--- a/devscripts/update-version.py
+++ b/devscripts/update-version.py
@@ -8,7 +8,7 @@ from datetime import datetime
exec(compile(open('youtube_dlc/version.py').read(), 'youtube_dlc/version.py', 'exec'))
old_version = locals()['__version__']
-old_version_list = old_version.replace('-', '.').split(".", 4)
+old_version_list = old_version.split(".", 4)
old_ver = '.'.join(old_version_list[:3])
old_rev = old_version_list[3] if len(old_version_list) > 3 else ''