diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2023-03-01 18:56:21 +0000 |
---|---|---|
committer | Josh Boyer <jwboyer@kernel.org> | 2023-05-08 08:38:18 -0400 |
commit | 6c9e0ed5362ff9fd74c11a2b9552a9223371f04a (patch) | |
tree | db728ee491f5270f49ea0ab1f531c17e9500a345 | |
parent | 05183b7bd5593edec62018c30dd52b9603df0368 (diff) | |
download | linux-firmware-6c9e0ed5362ff9fd74c11a2b9552a9223371f04a.tar.gz |
check_whence: error on directory listed as File
No occurrences in-tree, but it makes sense to sanity check that.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
-rwxr-xr-x | check_whence.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/check_whence.py b/check_whence.py index 9d99e94..711be36 100755 --- a/check_whence.py +++ b/check_whence.py @@ -51,6 +51,11 @@ def main(): known_prefixes = set(name for name in whence_list if name.endswith('/')) git_files = set(list_git()) + for name in set(name for name in whence_files if name.endswith('/')): + sys.stderr.write('E: %s listed in WHENCE as File, but is directory\n' % + name) + ret = 1 + for name in set(fw for fw in whence_files if whence_files.count(fw) > 1): sys.stderr.write('E: %s listed in WHENCE twice\n' % name) ret = 1 |