diff mbox series

[v2] oe/utils: filter license packages

Message ID 20260204064206.3122637-1-samuli.piippo@qt.io
State New
Headers show
Series [v2] oe/utils: filter license packages | expand

Commit Message

Samuli Piippo Feb. 4, 2026, 6:42 a.m. UTC
The packages_filter_out_system() function is used in PACKAGESPLITFUNCS
to filter out "system" packages (-dbg, -dev). The filtered packages
should include license packages (-lic) as well, when they are generated
with LICENSE_CREATE_PACKAGE = "1", otherwise the license packages will
get pulled into images unintentionally.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
---
 meta/lib/oe/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 0128ee411d..2b39d4e0dd 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -236,7 +236,7 @@  def packages_filter_out_system(d):
     PN-dbg PN-doc PN-locale-eb-gb removed.
     """
     pn = d.getVar('PN')
-    pkgfilter = [pn + suffix for suffix in ('', '-dbg', '-dev', '-doc', '-locale', '-staticdev', '-src')]
+    pkgfilter = [pn + suffix for suffix in ('', '-dbg', '-dev', '-doc', '-locale', '-staticdev', '-src', '-lic')]
     localepkg = pn + "-locale-"
     pkgs = []