mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 19:39:40 +01:00
license: Fix and extend recommendations for license packages.
Changed package recommendations so that the license package of a recipe is recommended for all packages of a recipe instead of for one package given by the recipe name. Pre-patch behaviour results in a missing recommendation when a recipe does not have a package with the same name. (From OE-Core rev: 07343ff6282dd18432ecee5d9b80ad1fb86217f1) Signed-off-by: Alp Özmert <info@ib-oezmert.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
830880a688
commit
42b3761274
@@ -340,6 +340,9 @@ def add_package_and_files(d):
|
||||
# first in PACKAGES to be sure that nothing else gets LICENSE_FILES_DIRECTORY
|
||||
d.setVar('PACKAGES', "%s %s" % (pn_lic, packages))
|
||||
d.setVar('FILES_' + pn_lic, files)
|
||||
for pn in packages.split():
|
||||
if pn == pn_lic:
|
||||
continue
|
||||
rrecommends_pn = d.getVar('RRECOMMENDS_' + pn)
|
||||
if rrecommends_pn:
|
||||
d.setVar('RRECOMMENDS_' + pn, "%s %s" % (pn_lic, rrecommends_pn))
|
||||
|
||||
Reference in New Issue
Block a user