]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/spdxcheck.py: Fix path to deprecated licenses
authorSven Eckelmann <sven@narfation.org>
Sat, 11 May 2019 20:19:16 +0000 (22:19 +0200)
committerJonathan Corbet <corbet@lwn.net>
Mon, 20 May 2019 19:25:21 +0000 (13:25 -0600)
commit0514e8ed106191e5bb16d71981f1d4c4e59a8dc3
treee1f38e82306f021077899d41bfb082531ea354e5
parente45611180906aac4354c384726d8d4254b6a5a97
scripts/spdxcheck.py: Fix path to deprecated licenses

The directory name for other licenses was changed to "deprecated" in
commit f170b1f9e45a ("LICENSES: Rename other to deprecated"). But it was
not changed for spdxcheck.py. As result, checkpatch failed with

  FAIL: "Blob or Tree named 'other' not found"
  Traceback (most recent call last):
    File "scripts/spdxcheck.py", line 240, in <module>
      spdx = read_spdxdata(repo)
    File "scripts/spdxcheck.py", line 41, in read_spdxdata
      for el in lictree[d].traverse():
    File "/usr/lib/python2.7/dist-packages/git/objects/tree.py", line 298, in __getitem__
      return self.join(item)
    File "/usr/lib/python2.7/dist-packages/git/objects/tree.py", line 244, in join
      raise KeyError(msg % file)
  KeyError: "Blob or Tree named 'other' not found"

Fixes: f170b1f9e45a ("LICENSES: Rename other to deprecated")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/spdxcheck.py