summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBeth Flanagan <elizabeth.flanagan@intel.com>2011-02-25 15:41:09 -0800
committerSaul Wold <sgw@linux.intel.com>2011-02-25 16:39:08 -0800
commit3c0522e9447c90b314f81e938a3bc4c1316b746e (patch)
treefd7cfc07c2e64b1d019336587e0a4f261e61abe1 /meta
parent16b8f9693655a1964014fc4afba861c4d59ea93f (diff)
downloadast2050-yocto-poky-3c0522e9447c90b314f81e938a3bc4c1316b746e.zip
ast2050-yocto-poky-3c0522e9447c90b314f81e938a3bc4c1316b746e.tar.gz
[BUG:650] Fix LICENSE parsing: license.bblcass
LICENSE parsing was missing some cases. Fixed Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/license.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 97d4e4e..4e3cd1c 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -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:
OpenPOWER on IntegriCloud