From a2cd540844b725fb9e4973447a15e8e8873d6f4c Mon Sep 17 00:00:00 2001 From: Thomas JANVIER Date: Thu, 12 Dec 2024 13:39:11 +0100 Subject: [PATCH] BUG: Fix metadata:plugin_dependencies parsing --- python/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/utils.py b/python/utils.py index 45378ba7456c..71991729c0ca 100644 --- a/python/utils.py +++ b/python/utils.py @@ -413,12 +413,12 @@ def get_plugin_deps(plugin_id: str) -> dict[str, Optional[str]]: return result for dep in plugin_deps.split(","): - if dep.find("==") > 0: + if "==" in dep: name, version_required = dep.split("==") else: - name = dep - version_required = None - result[name] = version_required + name, version_required = dep, None + result[name.strip()] = version_required.strip() if version_required else None + return result