summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index bb9fb9b049..aade40b5a8 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -854,7 +854,7 @@ def split_pkg_licenses(licvalues, packages, outlines, fallback_licenses=None, pn
854 pkglicenses[pn].append(license) 854 pkglicenses[pn].append(license)
855 outlicenses = {} 855 outlicenses = {}
856 for pkgname in packages: 856 for pkgname in packages:
857 license = ' '.join(list(set(pkglicenses.get(pkgname, ['Unknown'])))) 857 license = ' '.join(list(set(pkglicenses.get(pkgname, ['Unknown'])))) or 'Unknown'
858 if license == 'Unknown' and pkgname in fallback_licenses: 858 if license == 'Unknown' and pkgname in fallback_licenses:
859 license = fallback_licenses[pkgname] 859 license = fallback_licenses[pkgname]
860 outlines.append('LICENSE_%s = "%s"' % (pkgname, license)) 860 outlines.append('LICENSE_%s = "%s"' % (pkgname, license))