Skip to content

Commit

Permalink
BUG: Fix metadata:plugin_dependencies parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
T4mmi committed Jan 6, 2025
1 parent a11c18f commit a2cd540
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 a2cd540

Please sign in to comment.