diff options
author | Alp Özmert <info@ib-oezmert.de> | 2018-06-29 17:41:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-29 22:33:04 +0100 |
commit | 3d553974ad70e28ab1c92eda97092177b3396550 (patch) | |
tree | 5bd50d22b40c8c4df1db8778a3366c8fd0f767a1 | |
parent | 9c8b09c37f3ae806ccbbda04f1a0f8f12c8b4894 (diff) | |
download | openembedded-core-contrib-3d553974ad70e28ab1c92eda97092177b3396550.tar.gz |
Fix & 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.
Signed-off-by: Alp Özmert <info@ib-oezmert.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/license.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 06dd4a8c11..79ea7ede27 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -340,6 +340,7 @@ 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(): rrecommends_pn = d.getVar('RRECOMMENDS_' + pn) if rrecommends_pn: d.setVar('RRECOMMENDS_' + pn, "%s %s" % (pn_lic, rrecommends_pn)) |