mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
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> (cherry picked from commit d05e41eb1a934b2358799588bb305073d6df8e52) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
361d9ae731
commit
9610b1dd23
@ -379,7 +379,7 @@ class BuildrootPackage():
|
|||||||
"""
|
"""
|
||||||
Try to determine the related license name.
|
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
|
get license name from package's metadata or, if spdx_lookup
|
||||||
package is available, the script compares license files with
|
package is available, the script compares license files with
|
||||||
SPDX database.
|
SPDX database.
|
||||||
@ -388,7 +388,7 @@ class BuildrootPackage():
|
|||||||
if liclookup is None:
|
if liclookup is None:
|
||||||
license_dict = {
|
license_dict = {
|
||||||
'Apache Software License': 'Apache-2.0',
|
'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.0': 'EUPL-1.0',
|
||||||
'European Union Public Licence 1.1': 'EUPL-1.1',
|
'European Union Public Licence 1.1': 'EUPL-1.1',
|
||||||
"GNU General Public License": "GPL",
|
"GNU General Public License": "GPL",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user