diff mbox series

[3/4] lib: package: Check for incompatible licenses in locale packages

Message ID 20241018220818.4042304-4-JPEWhacker@gmail.com
State New
Headers show
Series Incompatible license handling fixes | expand

Commit Message

Joshua Watt Oct. 18, 2024, 9:59 p.m. UTC
Checks if incompatible licenses are present in the dynamically generated
locale packages

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta/lib/oe/package.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index c213a9a3ca6..37fbfe355cb 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -685,9 +685,11 @@  def split_locales(d):
     description = d.getVar('DESCRIPTION') or ""
     locale_section = d.getVar('LOCALE_SECTION')
     mlprefix = d.getVar('MLPREFIX') or ""
+    locale_pkgs = []
     for l in sorted(locales):
         ln = legitimize_package_name(l)
         pkg = pn + '-locale-' + ln
+        locale_pkgs.append(pkg)
         packages.insert(locale_index, pkg)
         locale_index += 1
         files = []
@@ -702,6 +704,7 @@  def split_locales(d):
             d.setVar('SECTION:' + pkg, locale_section)
 
     d.setVar('PACKAGES', ' '.join(packages))
+    oe.license.skip_incompatible_package_licenses(d, locale_pkgs)
 
     # Disabled by RP 18/06/07
     # Wildcards aren't supported in debian