@@ -663,6 +663,8 @@ def split_locales(d):
except ValueError:
locale_index = len(packages)
+ lic = d.getVar("LICENSE:" + pn + "-locale")
+
localepaths = []
locales = set()
for localepath in (d.getVar('LOCALE_PATHS') or "").split():
@@ -700,6 +702,8 @@ def split_locales(d):
d.setVar('RPROVIDES:' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
d.setVar('SUMMARY:' + pkg, '%s - %s translations' % (summary, l))
d.setVar('DESCRIPTION:' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
+ if lic:
+ d.setVar('LICENSE:' + pkg, lic)
if locale_section:
d.setVar('SECTION:' + pkg, locale_section)
When creating split locales, copy the license from LICENSE:${PN}-locale if set, otherwise leave it unspecified (which will result in falling back to LICENSE) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> --- meta/lib/oe/package.py | 4 ++++ 1 file changed, 4 insertions(+)