Skip to content
Snippets Groups Projects
Commit 79ba8182 authored by Weblate's avatar Weblate
Browse files

better parse of version in config file in case old sha version of git is

used (-xyz instead of +xyz)
parent 46711e11
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,10 @@ class OptionsParser:
app.config.set_per(optname, key, subname, value)
old_version = app.config.get('version')
old_version = old_version.split('+', 1)[0]
if '+' in old_version:
old_version = old_version.split('+', 1)[0]
elif '-' in old_version:
old_version = old_version.split('-', 1)[0]
self.update_config(old_version, new_version)
self.old_values = {} # clean mem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment