path: root/scripts/
diff options
authorSven Eckelmann <>2019-05-11 22:19:16 +0200
committerJonathan Corbet <>2019-05-20 13:25:21 -0600
commite6d319f68d4dcf355e89a7b21368c47c004a14c2 (patch)
treee1f38e82306f021077899d41bfb082531ea354e5 /scripts/
parentfba388032cf260761e5e9b05e8c0dd93417a00b4 (diff)
scripts/ Fix path to deprecated licenses
The directory name for other licenses was changed to "deprecated" in commit 62be257e986d ("LICENSES: Rename other to deprecated"). But it was not changed for As result, checkpatch failed with FAIL: "Blob or Tree named 'other' not found" Traceback (most recent call last): File "scripts/", line 240, in <module> spdx = read_spdxdata(repo) File "scripts/", line 41, in read_spdxdata for el in lictree[d].traverse(): File "/usr/lib/python2.7/dist-packages/git/objects/", line 298, in __getitem__ return self.join(item) File "/usr/lib/python2.7/dist-packages/git/objects/", line 244, in join raise KeyError(msg % file) KeyError: "Blob or Tree named 'other' not found" Fixes: 62be257e986d ("LICENSES: Rename other to deprecated") Signed-off-by: Sven Eckelmann <> Reviewed-by: Christoph Hellwig <> Signed-off-by: Jonathan Corbet <>
Diffstat (limited to 'scripts/')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ b/scripts/
index 4fe392e507fb..1a39b34588b7 100755
--- a/scripts/
+++ b/scripts/
@@ -32,7 +32,7 @@ class SPDXdata(object):
def read_spdxdata(repo):
# The subdirectories of LICENSES in the kernel source
- license_dirs = [ "preferred", "other", "exceptions" ]
+ license_dirs = [ "preferred", "deprecated", "exceptions" ]
lictree = repo.head.commit.tree['LICENSES']
spdx = SPDXdata()