diff options
author | André Apitzsch <git@apitzsch.eu> | 2020-05-19 17:26:17 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-05-21 01:12:58 +0300 |
commit | 3b0218bad6776d2732ef879f2fdb4cb7f603ad29 (patch) | |
tree | 42b678208a48062c2d30b700eedd1ba1bec35ef4 | |
parent | 5f397bd0a4ec2380413fb3bc533e0a1f4daac5fc (diff) |
[plugin_installer]: Fix version comparison
Fixes #505.
-rw-r--r-- | plugin_installer/utils.py | 4 |
1 files 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 |