[oe-commits] [openembedded-core] 07/13: license: Fix and extend recommendations for license packages.

git at git.openembedded.org git at git.openembedded.org
Mon Jul 2 09:22:34 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 9ec2932cc288a2881e552600e90c54c1489c11ce
Author: Alp Özmert <info at ib-oezmert.de>
AuthorDate: Fri Jun 29 17:41:02 2018 +0200

    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.
    
    Signed-off-by: Alp Özmert <info at ib-oezmert.de>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/license.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 06dd4a8..79ea7ed 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))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list