summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2021-12-06 10:53:37 +0100
committerMatthieu Coudron <teto@users.noreply.github.com>2021-12-22 00:33:12 +0100
commit7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f (patch)
tree8bda357187d63f611d3c1d93598e5951067447f9
parentd8d4e0f5c94025811992fe2e55a5df9cb3b6ef3b (diff)
downloadnixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.tar
nixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.tar.gz
nixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.tar.bz2
nixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.tar.lz
nixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.tar.xz
nixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.tar.zst
nixpkgs-7a30a844c6df2ea55fd2a86fe5ec821bcaab1b5f.zip
pluginupdate.py: support comments
when maintaining out of tree plugins, it makes it easier to swap/comment on specific plugins
-rw-r--r--maintainers/scripts/pluginupdate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/maintainers/scripts/pluginupdate.py b/maintainers/scripts/pluginupdate.py
index f19cd8638e2..9eabcfcebc6 100644
--- a/maintainers/scripts/pluginupdate.py
+++ b/maintainers/scripts/pluginupdate.py
@@ -401,6 +401,8 @@ def load_plugin_spec(plugin_file: str) -> List[PluginDesc]:
     plugins = []
     with open(plugin_file) as f:
         for line in f:
+            if line.startswith("#"):
+                continue
             plugin = parse_plugin_line(line)
             if not plugin.owner:
                 msg = f"Invalid repository {line}, must be in the format owner/repo[ as alias]"