From 07343ff6282dd18432ecee5d9b80ad1fb86217f1 Mon Sep 17 00:00:00 2001 From: Alp Özmert Date: Fri, 29 Jun 2018 17:41:02 +0200 Subject: license: Fix and extend recommendations for license packages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Richard Purdie --- meta/classes/license.bbclass | 3 +++ 1 file changed, 3 insertions(+) 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): # 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)) -- cgit 1.2.3-korg