summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/license.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 4f7842c3db..d353110464 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -486,7 +486,7 @@ def find_license_files(d):
486 except bb.fetch.MalformedUrl: 486 except bb.fetch.MalformedUrl:
487 bb.fatal("%s: LIC_FILES_CHKSUM contains an invalid URL: %s" % (d.getVar('PF'), url)) 487 bb.fatal("%s: LIC_FILES_CHKSUM contains an invalid URL: %s" % (d.getVar('PF'), url))
488 # We want the license filename and path 488 # We want the license filename and path
489 chksum = parm['md5'] if 'md5' in parm else parm['sha256'] 489 chksum = parm.get('md5', None)
490 beginline = parm.get('beginline') 490 beginline = parm.get('beginline')
491 endline = parm.get('endline') 491 endline = parm.get('endline')
492 lic_chksums[path] = (chksum, beginline, endline) 492 lic_chksums[path] = (chksum, beginline, endline)