Meta: Ignore empty directories in lint-ports

Git doesn't track empty directories, so we can just ignore them
This commit is contained in:
Cameron Youell 2023-04-29 00:29:47 +10:00 committed by Jelle Raaijmakers
parent bc75fa878e
commit 0a0ba4cbc5
Notes: sideshowbarker 2024-07-17 02:29:45 +09:00

View file

@ -75,6 +75,8 @@ def read_port_dirs():
print(f"Ports/{entry} is neither a port (not a directory) nor an ignored file?!")
all_good = False
continue
if os.listdir(entry) == []:
continue
if not os.path.exists(entry + '/package.sh'):
print(f"Ports/{entry}/ is missing its package.sh?!")
all_good = False