diff options
author | Alp Özmert <info@ib-oezmert.de> | 2018-06-29 17:41:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-02 21:37:47 +0100 |
commit | 42b3761274d53802184f16efec73ab008feb6e3d (patch) | |
tree | 7c0c0aa88b5b1bbd6e0884920197d192207149c2 /meta/classes | |
parent | 830880a6888270e047271137f43a643b218050d4 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/license.bbclass | 3 |
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)) |