From: Asaf Kahlon <asafka7@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] scanpypi: write every license file once
Date: Tue, 8 Oct 2019 12:04:04 +0300 [thread overview]
Message-ID: <20191008090404.26700-2-asafka7@gmail.com> (raw)
In-Reply-To: <20191008090404.26700-1-asafka7@gmail.com>
On some cases, when the package contains multiple license files
and some of them from the same type, the scanpypi script will write
the same license type more than once under _LICENSE.
Hence, before creating the _LICENSE variable, we'll remove every
possible duplication.
Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
---
utils/scanpypi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/utils/scanpypi b/utils/scanpypi
index 55b3d1e61c..b48eda49aa 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -461,6 +461,7 @@ class BuildrootPackage():
' likely wrong, please change it if need be'.format(
license=', '.join(licenses)))
licenses = [self.metadata['info']['license']]
+ licenses = set(licenses)
license_line = '{name}_LICENSE = {license}\n'.format(
name=self.mk_name,
license=', '.join(licenses))
@@ -473,6 +474,7 @@ class BuildrootPackage():
license_names.append(match.license.id)
else:
license_names.append("FIXME: license id couldn't be detected")
+ license_names = set(license_names)
if len(license_names) > 0:
license_line = ('{name}_LICENSE ='
--
2.20.1
next prev parent reply other threads:[~2019-10-08 9:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-08 9:04 [Buildroot] [PATCH 1/1] package/python-aioredis: bump to version 1.3.0 Asaf Kahlon
2019-10-08 9:04 ` Asaf Kahlon [this message]
2019-10-08 21:22 ` [Buildroot] [PATCH 1/1] scanpypi: write every license file once Thomas Petazzoni
2019-10-09 17:36 ` Yegor Yefremov
2019-10-10 7:29 ` Thomas Petazzoni
2019-10-10 8:38 ` Yegor Yefremov
2019-10-11 21:12 ` Arnout Vandecappelle
2019-10-08 20:45 ` [Buildroot] [PATCH 1/1] package/python-aioredis: bump to version 1.3.0 Thomas Petazzoni
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=20191008090404.26700-2-asafka7@gmail.com \
--to=asafka7@gmail.com \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.