]> code.ossystems Code Review - openembedded-core.git/commitdiff
[BUG:650] Fix LICENSE parsing: license.bblcass
authorBeth Flanagan <elizabeth.flanagan@intel.com>
Fri, 25 Feb 2011 23:41:09 +0000 (15:41 -0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 1 Mar 2011 11:46:47 +0000 (11:46 +0000)
LICENSE parsing was missing some cases. Fixed

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
meta/classes/license.bbclass

index 97d4e4e41ecfaafc6c7b1f33c01f9a9ba6bb2364..4e3cd1cbdf0e1d08cdce7e27bed831b77bb1bd0c 100644 (file)
@@ -66,7 +66,8 @@ python do_populate_lic() {
     # I'm sure someone has written a logic parser for these fields, but if so, I don't know where it is. 
     # So what I do is just link to every license mentioned in the license field.
     
-    for license_type in license_types.replace('&', '').replace('+', '').replace('&', '').replace('|', '').replace('(', '').replace(')', '').split():
+    for license_type in (' '.join(license_types.replace('&', ' ').replace('+', ' ').replace('|', ' ')
+                         .replace('(', ' ').replace(')', ' ').replace(';', ' ').replace(',', ' ').split())):
         if os.path.isfile(os.path.join(generic_directory, license_type)):
             gen_lic_dest = os.path.join(bb.data.getVar('LICENSE_DIRECTORY', d, True), "common-licenses")
             try: