summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/license.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-global/license.bbclass')
-rw-r--r--meta/classes-global/license.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes-global/license.bbclass b/meta/classes-global/license.bbclass
index b2e0d3faba..4e39ec1d44 100644
--- a/meta/classes-global/license.bbclass
+++ b/meta/classes-global/license.bbclass
@@ -39,7 +39,7 @@ python do_populate_lic() {
39} 39}
40 40
41PSEUDO_IGNORE_PATHS .= ",${@','.join(((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + (d.getVar('LICENSE_PATH') or '') + ' ' + d.getVar('COREBASE') + '/meta/COPYING').split())}" 41PSEUDO_IGNORE_PATHS .= ",${@','.join(((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + (d.getVar('LICENSE_PATH') or '') + ' ' + d.getVar('COREBASE') + '/meta/COPYING').split())}"
42# it would be better to copy them in do_install:append, but find_license_filesa is python 42# it would be better to copy them in do_install:append, but find_license_files is python
43python perform_packagecopy:prepend () { 43python perform_packagecopy:prepend () {
44 enabled = oe.data.typed_value('LICENSE_CREATE_PACKAGE', d) 44 enabled = oe.data.typed_value('LICENSE_CREATE_PACKAGE', d)
45 if d.getVar('CLASSOVERRIDE') == 'class-target' and enabled: 45 if d.getVar('CLASSOVERRIDE') == 'class-target' and enabled:
@@ -149,14 +149,14 @@ def find_license_files(d):
149 # and "with exceptions" being * 149 # and "with exceptions" being *
150 # we'll just strip out the modifier and put 150 # we'll just strip out the modifier and put
151 # the base license. 151 # the base license.
152 find_license(node.s.replace("+", "").replace("*", "")) 152 find_licenses(node.s.replace("+", "").replace("*", ""))
153 self.generic_visit(node) 153 self.generic_visit(node)
154 154
155 def visit_Constant(self, node): 155 def visit_Constant(self, node):
156 find_license(node.value.replace("+", "").replace("*", "")) 156 find_licenses(node.value.replace("+", "").replace("*", ""))
157 self.generic_visit(node) 157 self.generic_visit(node)
158 158
159 def find_license(license_type): 159 def find_licenses(license_type):
160 try: 160 try:
161 bb.utils.mkdirhier(gen_lic_dest) 161 bb.utils.mkdirhier(gen_lic_dest)
162 except: 162 except: