Correctly split version string
We changed the version format
This commit is contained in:
parent
9322ed4405
commit
276daa991c
|
@ -57,7 +57,7 @@ class OptionsParser:
|
|||
return False
|
||||
|
||||
new_version = app.config.get('version')
|
||||
new_version = new_version.split('-', 1)[0]
|
||||
new_version = new_version.split('+', 1)[0]
|
||||
seen = set()
|
||||
regex = re.compile(r"(?P<optname>[^.=]+)(?:(?:\.(?P<key>.+))?\.(?P<subname>[^.=]+))?\s=\s(?P<value>.*)")
|
||||
|
||||
|
@ -82,7 +82,7 @@ class OptionsParser:
|
|||
app.config.set_per(optname, key, subname, value)
|
||||
|
||||
old_version = app.config.get('version')
|
||||
old_version = old_version.split('-', 1)[0]
|
||||
old_version = old_version.split('+', 1)[0]
|
||||
|
||||
self.update_config(old_version, new_version)
|
||||
self.old_values = {} # clean mem
|
||||
|
|
|
@ -509,7 +509,7 @@ class PluginManager(metaclass=Singleton):
|
|||
min_v = conf.get('info', 'min_gajim_version', fallback=None)
|
||||
max_v = conf.get('info', 'max_gajim_version', fallback=None)
|
||||
|
||||
gajim_v = app.config.get('version').split('-', 1)[0]
|
||||
gajim_v = app.config.get('version').split('+', 1)[0]
|
||||
gajim_v_cmp = parse_version(gajim_v)
|
||||
|
||||
if min_v and gajim_v_cmp < parse_version(min_v):
|
||||
|
|
Loading…
Reference in New Issue