blob: 2bb7bbd5c6cb9c72974e902703fb7f0bdc67c384 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From foo@baz Thu Jan 17 09:33:34 CET 2019
Date: Thu, 17 Jan 2019 09:33:34 +0100
To: Greg KH <gregkh@linuxfoundation.org>
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: spdxcheck: print out files without any SPDX lines.
Just a hack to make it easy to see what still needs to be converted.
---
scripts/spdxcheck.py | 3 +++
1 file changed, 3 insertions(+)
--- a/scripts/spdxcheck.py
+++ b/scripts/spdxcheck.py
@@ -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
parser.parse_lines(fd, args.maxlines, el.path)
+ if i == parser.spdx_valid:
+ sys.stdout.write('%s\n' %el.path)
def scan_git_subtree(tree, path, dirdepth):
for p in path.strip('/').split('/'):
|