lol

maintainers/scripts/sha-to-sri: ignore `gemset.nix` files

authored by

nicoo and committed by
nicoo
4ebe4a20 87ad80ef

+5 -1
+5 -1
maintainers/scripts/sha-to-sri.py
··· 201 201 202 202 203 203 _SKIP_RE = re.compile("(generated by)|(do not edit)", re.IGNORECASE) 204 + _IGNORE = frozenset({ 205 + "gemset.nix", 206 + "yarn.nix", 207 + }) 204 208 205 209 if __name__ == "__main__": 206 210 from sys import argv ··· 239 243 logger.info("Recursing into directory") 240 244 for q in p.glob("**/*.nix"): 241 245 if q.is_file(): 242 - if q.name == "yarn.nix" or q.name.find("generated") != -1: 246 + if q.name in _IGNORE or q.name.find("generated") != -1: 243 247 logger.info("File looks autogenerated, skipping!") 244 248 continue 245 249