aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/scanpypi2
1 files changed, 2 insertions, 0 deletions
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 ='