Meta: Only allow sha256 and sig for auth_type in ports

This commit is contained in:
Gunnar Beutner 2021-04-25 11:54:14 +02:00 committed by Linus Groh
parent 5911d379a6
commit 4aaf6386ae
Notes: sideshowbarker 2024-07-18 19:06:45 +09:00

View file

@ -117,6 +117,11 @@ def check_package_files(ports):
continue
props = get_port_properties(port)
if not props['auth_type'] in ('sha256', 'sig', ''):
print(f"Ports/{port} uses invalid signature algorithm '{props['auth_type']}' for 'auth_type'")
all_good = False
for prop in PORT_PROPERTIES:
if prop == 'auth_type' and re.match('^https://github.com/SerenityOS/', props["files"]):
continue