Update WHENCE check script

This commit is contained in:
inference 2024-02-20 13:32:44 +00:00
parent 3cf64bf1ec
commit 4450708885
Signed by: inference
SSH Key Fingerprint: SHA256:FtEVfx1CmTKMy40VwZvF4k+3TC+QhCWy+EmPRg50Nnc
2 changed files with 7 additions and 1 deletions

View File

@ -28,6 +28,7 @@ Changelog (since version 3.0.0):
* Update readme
* Update Makefile
* Update WHENCE
* Update WHENCE check script
* Update copy-firmware script
[id=3_0_0]
@ -85,4 +86,4 @@ Tags:
Changelog:
* Initial release
* Initial release

View File

@ -70,6 +70,7 @@ def main():
whence_list = list(list_whence())
whence_files = list(list_whence_files())
links_list = list(list_links_list())
whence_links = list(zip(*links_list))[0]
known_files = set(name for name in whence_list if not name.endswith("/")) | set(
[
".gitignore",
@ -102,6 +103,10 @@ def main():
sys.stderr.write("E: %s listed in WHENCE twice\n" % name)
ret = 1
for name in set(link for link in whence_links if whence_links.count(link) > 1):
sys.stderr.write("E: %s listed in WHENCE twice\n" % name)
ret = 1
for name in set(link for link in whence_files if os.path.islink(link)):
sys.stderr.write("E: %s listed in WHENCE as File, but is a symlink\n" % name)
ret = 1