[OE-core] [PATCH] license.bbclass: fix license manifest

jackie.huang at windriver.com jackie.huang at windriver.com
Mon Jan 11 05:55:38 UTC 2016


From: Jackie Huang <jackie.huang at windriver.com>

The license manifest is wrong when there is no spaces before and after separates |&()
and we can get warning like:
WARNING: The license listed Artistic-1.0GPLv1+ was not in the licenses collected for recipe

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta/classes/license.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 8ad4614..af78944 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -61,7 +61,7 @@ python license_create_manifest() {
                 except oe.license.LicenseError as exc:
                     bb.fatal('%s: %s' % (d.getVar('P', True), exc))
             else:
-                pkg_dic[pkg]["LICENSES"] = re.sub('[|&()*]', '', pkg_dic[pkg]["LICENSE"])
+                pkg_dic[pkg]["LICENSES"] = re.sub('[|&()*]', ' ', pkg_dic[pkg]["LICENSE"])
                 pkg_dic[pkg]["LICENSES"] = re.sub('  *', ' ', pkg_dic[pkg]["LICENSES"])
                 pkg_dic[pkg]["LICENSES"] = pkg_dic[pkg]["LICENSES"].split()
 
-- 
1.9.1




More information about the Openembedded-core mailing list