pluginupdate.py: normalize input for filtering plugins

Replacing `.` with `-`
This commit is contained in:
PerchunPak
2025-08-30 12:59:29 +02:00
parent 9dca748497
commit 8f5fbd1ea9

View File

@@ -504,13 +504,14 @@ class Editor:
) )
_prefetch = functools.partial(prefetch, cache=cache) _prefetch = functools.partial(prefetch, cache=cache)
to_update_for_filter = [x.replace(".", "-") for x in to_update]
plugins_to_update = ( plugins_to_update = (
current_plugin_specs current_plugin_specs
if len(to_update) == 0 if len(to_update) == 0
else [ else [
description description
for description in current_plugin_specs for description in current_plugin_specs
if self.filter_plugins_to_update(description, to_update) if self.filter_plugins_to_update(description, to_update_for_filter)
] ]
) )