summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass8
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 660b85f619..afcfbfc038 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -390,7 +390,7 @@ def find_license_files(d):
390 from collections import defaultdict, OrderedDict 390 from collections import defaultdict, OrderedDict
391 391
392 # All the license files for the package 392 # All the license files for the package
393 lic_files = d.getVar('LIC_FILES_CHKSUM', True) 393 lic_files = d.getVar('LIC_FILES_CHKSUM', True) or ""
394 pn = d.getVar('PN', True) 394 pn = d.getVar('PN', True)
395 # The license files are located in S/LIC_FILE_CHECKSUM. 395 # The license files are located in S/LIC_FILE_CHECKSUM.
396 srcdir = d.getVar('S', True) 396 srcdir = d.getVar('S', True)
@@ -469,12 +469,6 @@ def find_license_files(d):
469 if not generic_directory: 469 if not generic_directory:
470 bb.fatal("COMMON_LICENSE_DIR is unset. Please set this in your distro config") 470 bb.fatal("COMMON_LICENSE_DIR is unset. Please set this in your distro config")
471 471
472 if not lic_files:
473 # No recipe should have an invalid license file. This is checked else
474 # where, but let's be pedantic
475 bb.note(pn + ": Recipe file does not have license file information.")
476 return lic_files_paths
477
478 for url in lic_files.split(): 472 for url in lic_files.split():
479 try: 473 try:
480 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url) 474 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)