path: root/utils/scanpypi
diff options
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2018-10-11 07:54:11 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-11 09:32:33 +0200
commitd05e41eb1a934b2358799588bb305073d6df8e52 (patch)
tree87ad7fa9abbfa698afb5ac6ac9fb3059875a4625 /utils/scanpypi
parent53a9e432fb24e77dbe7e50b50d76dfbae1c6f254 (diff)
scanpypi: improve BSD licence handling
When used without spdx_lookup the BSD licence cannot be detected correctly because many Python packages just specify BSD without the exact version in their metadata. So add a special message warning the user instead of the licence id. Bonus: fix typo. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils/scanpypi')
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/scanpypi b/utils/scanpypi
index 31e242e3db..3983be1ad1 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -395,7 +395,7 @@ class BuildrootPackage():
Try to determine the related license name.
- There are two possibilities. Either the scripts tries to
+ There are two possibilities. Either the script tries to
get license name from package's metadata or, if spdx_lookup
package is available, the script compares license files with
SPDX database.
@@ -404,7 +404,7 @@ class BuildrootPackage():
if liclookup is None:
license_dict = {
'Apache Software License': 'Apache-2.0',
- 'BSD License': 'BSD',
+ 'BSD License': 'FIXME: please specify the exact BSD version',
'European Union Public Licence 1.0': 'EUPL-1.0',
'European Union Public Licence 1.1': 'EUPL-1.1',
"GNU General Public License": "GPL",