]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/spdxcheck.py: handle license identifiers in XML comments
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Sat, 26 Sep 2020 19:03:54 +0000 (21:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2020 09:31:26 +0000 (11:31 +0200)
commit9fc51931fa92f85ec209a6ce8e623158eacba3ed
tree6f025e0e99db0461d5ae10deeec9529025a004f6
parent628930bf3c6be480256898a077a7925ed6938ba5
scripts/spdxcheck.py: handle license identifiers in XML comments

Commit faf29ef4a73d ("media: docs: use the new SPDX header for GFDL-1.1 on
*.svg files") adds SPDX-License-Identifiers enclosed in XML comments,
i.e., <!-- ... -->, for svg files.

Unfortunately, ./scripts/spdxcheck.py does not handle
SPDX-License-Identifiers in XML comments, so it simply fails on checking
these files with 'Invalid License ID: --'.

Strip the XML comment ending simply by copying how it was done for comments
in C. With that, ./scripts/spdxcheck.py handles the svg files properly.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/spdxcheck.py