Skip to content

Commit

Permalink
Merge pull request #59852 from T4mmi/BUG-Fix-plugin_dependencies-parser
Browse files Browse the repository at this point in the history
BUG: Fix metadata:plugin_dependencies parsing
  • Loading branch information
m-kuhn authored Jan 6, 2025
2 parents a11c18f + a2cd540 commit 906b4e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 906b4e8

Please sign in to comment.