From 3b0218bad6776d2732ef879f2fdb4cb7f603ad29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Tue, 19 May 2020 16:26:17 +0200 Subject: [plugin_installer]: Fix version comparison Fixes #505. --- plugin_installer/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_installer/utils.py b/plugin_installer/utils.py index 83a565f..ea88aa4 100644 --- a/plugin_installer/utils.py +++ b/plugin_installer/utils.py @@ -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 -- cgit v1.2.3