Commit 60404c3f authored by Philipp Hörist's avatar Philipp Hörist
Browse files

fix: Correct typos

parent 17f16534
......@@ -71,7 +71,7 @@ def _on_repository_received(self,
message: Soup.Message) -> None:
if message.status_code != Soup.Status.OK:
log.warning('Repository retrival failed')
log.warning('Repository retrieval failed')
......@@ -121,7 +121,7 @@ def _parse_package_json(self,
package_index: dict[str, Any]
) -> dict[str, PluginManifest]:
suiteable_plugins: dict[str, PluginManifest] = {}
suitable_plugins: dict[str, PluginManifest] = {}
plugins = package_index['plugins']
for name, versions in plugins.items():
for version, manifest in versions.items():
......@@ -134,16 +134,16 @@ def _parse_package_json(self,
if not manifest.is_usable:'Ignore not suiteable plugin: %s %s','Ignore not suitable plugin: %s %s',
manifest.short_name, manifest.version)
last_plugin = suiteable_plugins.get(manifest.short_name)
last_plugin = suitable_plugins.get(manifest.short_name)
if (last_plugin is None or
last_plugin.version < manifest.version):
suiteable_plugins[manifest.short_name] = manifest
suitable_plugins[manifest.short_name] = manifest
return suiteable_plugins
return suitable_plugins
def _refresh_plugin_index(self, callback: Optional[Any] = None) -> None:'Refresh index')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment