aboutsummaryrefslogtreecommitdiffstats
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-17 09:34:37 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-17 09:34:37 +0100
commita47b7cd1ae58ea0b41b69de496d6940a43b870df (patch)
treeb96d17c53989e0237ae2631e5b557e06c9b12bda
parentb74a449f1a312d7d30c4738ead06c5751e5160f4 (diff)
downloadpatches-a47b7cd1ae58ea0b41b69de496d6940a43b870df.tar.gz
spdx check patch
-rw-r--r--series1
-rw-r--r--spdxcheck-print-out-files-without-any-spdx-lines.patch27
2 files changed, 28 insertions, 0 deletions
diff --git a/series b/series
index 8418d130e0ba96..75fb63c9eff0ca 100644
--- a/series
+++ b/series
@@ -1,5 +1,6 @@
#
+spdxcheck-print-out-files-without-any-spdx-lines.patch
0001-Bluetooth-check-message-types-in-l2cap_get_conf_opt.patch
0002-Bluetooth-check-the-buffer-size-for-some-messages-be.patch
0003-IN_BADCLASS-fix-macro-to-actually-work.patch
diff --git a/spdxcheck-print-out-files-without-any-spdx-lines.patch b/spdxcheck-print-out-files-without-any-spdx-lines.patch
new file mode 100644
index 00000000000000..cc767b3a617112
--- /dev/null
+++ b/spdxcheck-print-out-files-without-any-spdx-lines.patch
@@ -0,0 +1,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
+@@ -204,7 +204,10 @@ def scan_git_tree(tree):
+ if not os.path.isfile(el.path):
+ 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):
+ for p in path.strip('/').split('/'):