pluginupdate.py: support comments
when maintaining out of tree plugins, it makes it easier to swap/comment on specific plugins
This commit is contained in:
committed by
Matthieu Coudron
parent
d8d4e0f5c9
commit
7a30a844c6
@@ -401,6 +401,8 @@ def load_plugin_spec(plugin_file: str) -> List[PluginDesc]:
|
|||||||
plugins = []
|
plugins = []
|
||||||
with open(plugin_file) as f:
|
with open(plugin_file) as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
|
if line.startswith("#"):
|
||||||
|
continue
|
||||||
plugin = parse_plugin_line(line)
|
plugin = parse_plugin_line(line)
|
||||||
if not plugin.owner:
|
if not plugin.owner:
|
||||||
msg = f"Invalid repository {line}, must be in the format owner/repo[ as alias]"
|
msg = f"Invalid repository {line}, must be in the format owner/repo[ as alias]"
|
||||||
|
|||||||
Reference in New Issue
Block a user