diff options
Diffstat (limited to 'scripts/lib/recipetool')
-rw-r--r-- | scripts/lib/recipetool/create_npm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py index a21502679e..eb19555a8e 100644 --- a/scripts/lib/recipetool/create_npm.py +++ b/scripts/lib/recipetool/create_npm.py | |||
@@ -240,7 +240,8 @@ class NpmRecipeHandler(RecipeHandler): | |||
240 | packages['${PN}'] = '' | 240 | packages['${PN}'] = '' |
241 | pkglicenses = split_pkg_licenses(licvalues, packages, lines_after, licenses) | 241 | pkglicenses = split_pkg_licenses(licvalues, packages, lines_after, licenses) |
242 | all_licenses = list(set([item.replace('_', ' ') for pkglicense in pkglicenses.values() for item in pkglicense])) | 242 | all_licenses = list(set([item.replace('_', ' ') for pkglicense in pkglicenses.values() for item in pkglicense])) |
243 | all_licenses.remove('&') | 243 | if '&' in all_licenses: |
244 | all_licenses.remove('&') | ||
244 | # Go back and update the LICENSE value since we have a bit more | 245 | # Go back and update the LICENSE value since we have a bit more |
245 | # information than when that was written out (and we know all apply | 246 | # information than when that was written out (and we know all apply |
246 | # vs. there being a choice, so we can join them with &) | 247 | # vs. there being a choice, so we can join them with &) |