From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/7] scripts/spdxcheck: fix usage of non-existing variables
Date: Tue, 15 Sep 2020 22:54:11 +0200 [thread overview]
Message-ID: <20200915205417.15484-2-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20200915205417.15484-1-u.kleine-koenig@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
scripts/spdxcheck.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py
index 723bfa4ebf77..7e08c6e4136e 100755
--- a/scripts/spdxcheck.py
+++ b/scripts/spdxcheck.py
@@ -58,13 +58,13 @@ def read_spdxdata(repo):
elif l.startswith('SPDX-Licenses:'):
for lic in l.split(':')[1].upper().strip().replace(' ', '').replace('\t', '').split(','):
if not lic in spdx.licenses:
- raise SPDXException(None, 'Exception %s missing license %s' %(ex, lic))
+ raise SPDXException(None, 'Exception %s missing license %s' %(exception, lic))
spdx.exceptions[exception].append(lic)
elif l.startswith("License-Text:"):
if exception:
if not len(spdx.exceptions[exception]):
- raise SPDXException(el, 'Exception %s is missing SPDX-Licenses' %excid)
+ raise SPDXException(el, 'Exception %s is missing SPDX-Licenses' %exception)
spdx.exception_files += 1
else:
spdx.license_files += 1
--
2.27.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2020-09-15 20:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 20:54 [PATCH 0/7] Relicense GPL programs for compatibility with OpenSSL Uwe Kleine-König
2020-09-15 20:54 ` Uwe Kleine-König [this message]
2020-09-15 20:54 ` [PATCH 2/7] LICENSES: add used licenses to make spdxcheck happy Uwe Kleine-König
2020-09-16 8:43 ` Roland Hieber
2020-09-16 9:13 ` Uwe Kleine-König
2020-09-15 20:54 ` [PATCH 3/7] scripts: convert imx-image and mxsimage to SPDX Uwe Kleine-König
2020-09-16 8:46 ` Roland Hieber
2020-09-15 20:54 ` [PATCH 4/7] LICENSES: add OpenSSL exception Uwe Kleine-König
2020-09-16 9:27 ` Roland Hieber
2020-09-15 20:54 ` [PATCH 5/7] scripts/rsatoc: relicense to allow distribution of binary linked with OpenSSL Uwe Kleine-König
2020-09-16 8:55 ` Roland Hieber
2020-09-16 9:17 ` Roland Hieber
2020-09-16 9:39 ` Roland Hieber
2020-09-16 10:13 ` Marc Kleine-Budde
2020-09-15 20:54 ` [PATCH 6/7] scripts/imx-image: " Uwe Kleine-König
2020-09-16 8:00 ` Ahmad Fatoum
2020-09-16 8:21 ` Marc Kleine-Budde
2020-09-17 9:38 ` Rouven Czerwinski
2020-09-17 12:36 ` Bastian Krause
2020-09-15 20:54 ` [PATCH 7/7] scripts/mxsimage: " Uwe Kleine-König
2020-09-15 21:31 ` Marek Vasut
2020-09-18 6:32 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200915205417.15484-2-u.kleine-koenig@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox