Commit 3bf7dddc authored by Weblate's avatar Weblate

fix checking updates

parent aa19e472
[info]
name: Plugin Installer
short_name: plugin_installer
version: 0.12.3
version: 0.12.4
description: Install and upgrade plugins from HTTPS
authors: Denis Fomin <fominde@gmail.com>
Yann Leboulanger <asterix@lagaule.org>
......
......@@ -225,9 +225,15 @@ class PluginInstaller(GajimPlugin):
'version'))
gajim_v = convert_version_to_list(gajim.config.get(
'version'))
min_v = config.get('info', 'min_gajim_version')
try:
min_v = config.get('info', 'min_gajim_version')
except:
min_v = None
min_v = convert_version_to_list(min_v) if min_v else gajim_v
max_v = config.get('info', 'max_gajim_version')
try:
max_v = config.get('info', 'max_gajim_version')
except:
max_v = None
max_v = convert_version_to_list(max_v) if max_v else gajim_v
if (remote > local) and (gajim_v >= min_v) and \
(gajim_v <= max_v):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment