scripts/spdxcheck.py: Handle special quotation mark comments
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jan 2019 10:26:53 +0000 (11:26 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 16 Jan 2019 21:54:51 +0000 (14:54 -0700)
commit959b49687838c9eae38f19cb19d504ba880b6cd0
tree88d43f84a0529f491a78b47c1e2af68a7a12288b
parent6e6c61d3e342ee0830844b1ce3d433decfc2321e
scripts/spdxcheck.py: Handle special quotation mark comments

The SuperH boot code files use a magic format for the SPDX identifier
comment:

  LIST "SPDX-License-Identifier: .... "

The trailing quotation mark is not stripped before the token parser is
invoked and causes the scan to fail. Handle it gracefully.

Fixes: 6a0abce4c4cc ("sh: include: convert to SPDX identifiers")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/spdxcheck.py