From 4aaf6386ae8f33755513f2040aa1aa5df16523cd Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 25 Apr 2021 11:54:14 +0200 Subject: [PATCH] Meta: Only allow sha256 and sig for auth_type in ports --- Meta/lint-ports.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Meta/lint-ports.py b/Meta/lint-ports.py index dd8e549b02..32f4382cd0 100755 --- a/Meta/lint-ports.py +++ b/Meta/lint-ports.py @@ -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