diff options
-rw-r--r-- | meta/classes/license.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index c85233c7a6..6c4a6739f2 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -215,9 +215,10 @@ python do_populate_lic() { | |||
215 | if spdx_generic and license_source: | 215 | if spdx_generic and license_source: |
216 | # we really should copy to generic_ + spdx_generic, however, that ends up messing the manifest | 216 | # we really should copy to generic_ + spdx_generic, however, that ends up messing the manifest |
217 | # audit up. This should be fixed in emit_pkgdata (or, we actually got and fix all the recipes) | 217 | # audit up. This should be fixed in emit_pkgdata (or, we actually got and fix all the recipes) |
218 | ret = bb.copyfile(os.path.join(license_source, spdx_generic), os.path.join(os.path.join(d.getVar('LICSSTATEDIR', True), pn), "generic_" + license_type)) | 218 | |
219 | bb.copyfile(os.path.join(license_source, spdx_generic), os.path.join(os.path.join(d.getVar('LICSSTATEDIR', True), pn), "generic_" + license_type)) | ||
220 | if not os.path.isfile(os.path.join(os.path.join(d.getVar('LICSSTATEDIR', True), pn), "generic_" + license_type)): | ||
219 | # If the copy didn't occur, something horrible went wrong and we fail out | 221 | # If the copy didn't occur, something horrible went wrong and we fail out |
220 | if not ret: | ||
221 | bb.warn("%s for %s could not be copied for some reason. It may not exist. WARN for now." % (spdx_generic, pn)) | 222 | bb.warn("%s for %s could not be copied for some reason. It may not exist. WARN for now." % (spdx_generic, pn)) |
222 | else: | 223 | else: |
223 | # And here is where we warn people that their licenses are lousy | 224 | # And here is where we warn people that their licenses are lousy |