Ports: Update the lint-ports.py script to ignore missing auth_type for SerenityOS repositories

This commit is contained in:
Gunnar Beutner 2021-04-19 22:19:38 +02:00 committed by Linus Groh
parent 12ed436562
commit 2d62cf8b79
Notes: sideshowbarker 2024-07-18 19:20:50 +09:00

View file

@ -81,6 +81,8 @@ def check_package_files(ports):
data = fp.read()
for p in properties:
if not re.findall(f"^{p}=", data, re.M):
if p == 'auth_type' and re.findall('^files="?https://github.com/SerenityOS/', data, re.M):
continue
print(f"Ports/{package} is missing '{p}'")
all_good = False