diff options
author | shirt-dev <2660574+shirt-dev@users.noreply.github.com> | 2021-02-09 07:34:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 18:04:00 +0530 |
commit | 3dd264bf423543e8d3d5394a38cd79007f1a59f8 (patch) | |
tree | 2bb8b4071d8c9b5fa53338a1b0fdafc0ab39849a /devscripts/update-version.py | |
parent | efabc161652d2427c2fe5ccff6c944e91ea12ca0 (diff) | |
download | hypervideo-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.py | 2 |
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 '' |