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