pluginupdate.py: normalize input for filtering plugins
Replacing `.` with `-`
This commit is contained in:
@@ -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)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user