mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
Meta: Add check if AvailablePorts.md is sorted
This commit is contained in:
parent
83b21d4299
commit
06eca0a666
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/circl-lastname Commit: https://github.com/SerenityOS/serenity/commit/06eca0a666 Pull-request: https://github.com/SerenityOS/serenity/pull/14118 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi
@ -347,6 +347,12 @@ def run():
|
||||
from_table_set = set(from_table.keys())
|
||||
ports_set = set(ports.keys())
|
||||
|
||||
if list(from_table.keys()) != sorted(from_table.keys(), key=str.lower):
|
||||
all_good = False
|
||||
print('AvailablePorts.md is not in the correct order, please ensure that all ports are sorted as follows:')
|
||||
for port in sorted(from_table.keys(), key=str.lower):
|
||||
print(f" {port}")
|
||||
|
||||
if from_table_set - ports_set:
|
||||
all_good = False
|
||||
print('AvailablePorts.md lists ports that do not appear in the file system:')
|
||||
|
Loading…
Reference in New Issue
Block a user