From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH v2 1/7] scripts/spdxcheck: fix usage of non-existing variables
Date: Fri, 18 Sep 2020 10:19:50 +0200 [thread overview]
Message-ID: <20200918081956.24971-2-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20200918081956.24971-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-18 8:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 8:19 [PATCH v2 0/7] Relicense GPL programs for compatibility with OpenSSL Uwe Kleine-König
2020-09-18 8:19 ` Uwe Kleine-König [this message]
2020-09-18 8:19 ` [PATCH v2 2/7] LICENSES: add used licenses to make spdxcheck happy Uwe Kleine-König
2020-09-18 8:19 ` [PATCH v2 3/7] scripts: convert imx-image and mxsimage to SPDX Uwe Kleine-König
2020-09-18 8:19 ` [PATCH v2 4/7] LICENSES: add OpenSSL exception Uwe Kleine-König
2020-09-18 8:19 ` [PATCH v2 5/7] scripts/rsatoc: relicense to allow distribution of binary linked with OpenSSL Uwe Kleine-König
2020-09-18 8:19 ` [PATCH v2 6/7] scripts/imx-image: " Uwe Kleine-König
2020-09-21 10:04 ` Marcin Niestrój
2020-09-18 8:19 ` [PATCH v2 7/7] scripts/mxsimage: " Uwe Kleine-König
2020-09-21 6:28 ` [PATCH v2 0/7] Relicense GPL programs for compatibility " Sascha Hauer
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=20200918081956.24971-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