check_whence: error if File: is actually a link

Commits from a few years ago added support for Link entries, over having
the symlinks in-tree.

At the same time, it didn't add a check whether one didn't add a File
entry that is actually a symlink. Do so now, to be on the safe side.

v2:
 - drop copy-firmware.sh changes

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
Emil Velikov 2023-06-05 14:58:06 +01:00 committed by Josh Boyer
parent 4b539e7a32
commit f2671b1f50
No known key found for this signature in database
GPG Key ID: A31B6BD72486CFD6
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ def main():
sys.stderr.write('E: %s listed in WHENCE twice\n' % name) sys.stderr.write('E: %s listed in WHENCE twice\n' % name)
ret = 1 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
for name in sorted(list(known_files - git_files)): for name in sorted(list(known_files - git_files)):
sys.stderr.write('E: %s listed in WHENCE does not exist\n' % name) sys.stderr.write('E: %s listed in WHENCE does not exist\n' % name)
ret = 1 ret = 1