summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
authorAlp Özmert <info@ib-oezmert.de>2018-06-29 17:41:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 21:37:47 +0100
commit42b3761274d53802184f16efec73ab008feb6e3d (patch)
tree7c0c0aa88b5b1bbd6e0884920197d192207149c2 /meta/classes/license.bbclass
parent830880a6888270e047271137f43a643b218050d4 (diff)
downloadpoky-42b3761274d53802184f16efec73ab008feb6e3d.tar.gz
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>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 06dd4a8c11..141af5de4d 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -340,6 +340,9 @@ def add_package_and_files(d):
340 # first in PACKAGES to be sure that nothing else gets LICENSE_FILES_DIRECTORY 340 # first in PACKAGES to be sure that nothing else gets LICENSE_FILES_DIRECTORY
341 d.setVar('PACKAGES', "%s %s" % (pn_lic, packages)) 341 d.setVar('PACKAGES', "%s %s" % (pn_lic, packages))
342 d.setVar('FILES_' + pn_lic, files) 342 d.setVar('FILES_' + pn_lic, files)
343 for pn in packages.split():
344 if pn == pn_lic:
345 continue
343 rrecommends_pn = d.getVar('RRECOMMENDS_' + pn) 346 rrecommends_pn = d.getVar('RRECOMMENDS_' + pn)
344 if rrecommends_pn: 347 if rrecommends_pn:
345 d.setVar('RRECOMMENDS_' + pn, "%s %s" % (pn_lic, rrecommends_pn)) 348 d.setVar('RRECOMMENDS_' + pn, "%s %s" % (pn_lic, rrecommends_pn))