Commit 0d6f8e69 authored by André's avatar André

[plugin_installer]: Fix version comparison

Fixes #505.
parent 23612ffc
......@@ -93,7 +93,7 @@ class PluginInfo:
def _get_installed_version(self):
for plugin in app.plugin_manager.plugins:
if plugin.name == self.name:
return plugin.version
return V(plugin.version)
# Fallback:
# If the plugin has errors and is not loaded by the
......@@ -110,7 +110,7 @@ class PluginInfo:
if not manifest_path.exists():
return None
try:
return PluginInfo.from_path(manifest_path).version
return V(PluginInfo.from_path(manifest_path).version)
except Exception as error:
log.warning(error)
return None
......
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