]> code.ossystems Code Review - openembedded-core.git/commitdiff
license.bbclass: handle | (or) in the LICENSE field
authorJoshua Lock <josh@linux.intel.com>
Mon, 31 Jan 2011 11:11:30 +0000 (11:11 +0000)
committerJoshua Lock <josh@linux.intel.com>
Mon, 31 Jan 2011 11:11:30 +0000 (11:11 +0000)
The class strips out operators from the LICENSE field and to reduce it to a
list of license, | was missing but is quite frequently used so add it to the
list of replaced characters.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/license.bbclass

index ddedd577ccdec0ecb9652e678a0d20e633a27d9b..22c40c1596a905925d47e45f744891751bd15f5b 100644 (file)
@@ -76,7 +76,7 @@ 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(')', '').split():
+    for license_type in license_types.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: