Changed package recommendations so that the license package of a recipe
is recommended for all other 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.
---
 meta/classes/license.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 0514e91..5c44bd5 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -167,6 +167,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, True)
         if rrecommends_pn:
             d.setVar('RRECOMMENDS_' + pn, "%s %s" % (pn_lic, rrecommends_pn))
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to