diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-10 14:30:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-10 14:30:12 +0200 |
commit | c84136446aa5d0b3b7ca489808cf8c69dcbd65ba (patch) | |
tree | f78ddff85b6a8ce380c22c8ba0b9a024eb9d96b6 /spdxcheck-print-out-files-without-any-spdx-lines.patch | |
parent | 374455f081ca3aac16960d99f8b02b3580499b18 (diff) | |
download | patches-c84136446aa5d0b3b7ca489808cf8c69dcbd65ba.tar.gz |
update all patches
Diffstat (limited to 'spdxcheck-print-out-files-without-any-spdx-lines.patch')
-rw-r--r-- | spdxcheck-print-out-files-without-any-spdx-lines.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spdxcheck-print-out-files-without-any-spdx-lines.patch b/spdxcheck-print-out-files-without-any-spdx-lines.patch index 681db818c4f978..2bb7bbd5c6cb9c 100644 --- a/spdxcheck-print-out-files-without-any-spdx-lines.patch +++ b/spdxcheck-print-out-files-without-any-spdx-lines.patch @@ -14,8 +14,8 @@ Just a hack to make it easy to see what still needs to be converted. --- a/scripts/spdxcheck.py +++ b/scripts/spdxcheck.py -@@ -214,7 +214,10 @@ def scan_git_tree(tree): - if not os.path.isfile(el.path): +@@ -298,7 +298,10 @@ def scan_git_tree(tree, basedir, dirdept + parser.excluded += 1 continue with open(el.path, 'rb') as fd: + i = parser.spdx_valid @@ -23,5 +23,5 @@ Just a hack to make it easy to see what still needs to be converted. + if i == parser.spdx_valid: + sys.stdout.write('%s\n' %el.path) - def scan_git_subtree(tree, path): + def scan_git_subtree(tree, path, dirdepth): for p in path.strip('/').split('/'): |