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.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 6abdae4e84..1c1b679fac 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -228,7 +228,10 @@ def find_license_files(d):
228 return lic_files_paths 228 return lic_files_paths
229 229
230 for url in lic_files.split(): 230 for url in lic_files.split():
231 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url) 231 try:
232 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
233 except bb.fetch.MalformedUrl:
234 raise bb.build.FuncFailed("%s: LIC_FILES_CHKSUM contains an invalid URL: %s" % (d.getVar('PF', True), url))
232 # We want the license filename and path 235 # We want the license filename and path
233 srclicfile = os.path.join(srcdir, path) 236 srclicfile = os.path.join(srcdir, path)
234 lic_files_paths.append((os.path.basename(path), srclicfile)) 237 lic_files_paths.append((os.path.basename(path), srclicfile))