summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass4
-rw-r--r--meta/classes/license.bbclass4
2 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index bb1f4b7533..abb4eadf50 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -100,8 +100,8 @@ def get_lic_checksum_file_list(d):
100 # We only care about items that are absolute paths since 100 # We only care about items that are absolute paths since
101 # any others should be covered by SRC_URI. 101 # any others should be covered by SRC_URI.
102 try: 102 try:
103 path = bb.fetch.decodeurl(url)[2] 103 (method, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
104 if not path: 104 if method != "file" or not path:
105 raise bb.fetch.MalformedUrl(url) 105 raise bb.fetch.MalformedUrl(url)
106 106
107 if path[0] == '/': 107 if path[0] == '/':
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 06dd4a8c11..5103ed8533 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -480,7 +480,9 @@ def find_license_files(d):
480 480
481 for url in lic_files.split(): 481 for url in lic_files.split():
482 try: 482 try:
483 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url) 483 (method, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
484 if method != "file" or not path:
485 raise bb.fetch.MalformedUrl()
484 except bb.fetch.MalformedUrl: 486 except bb.fetch.MalformedUrl:
485 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))
486 # We want the license filename and path 488 # We want the license filename and path