summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-08-13 18:20:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-29 15:23:50 +0100
commit7b10c902cbd32a0a1b8fbe7747cee89b78584fb3 (patch)
tree8dc3e72f3b43687c223c0afa03c41945ee8513eb /meta/classes/base.bbclass
parentfb3f8f14bd80f29d22afd846df550e96027c6f58 (diff)
downloadpoky-7b10c902cbd32a0a1b8fbe7747cee89b78584fb3.tar.gz
classes: sanity-check LIC_FILES_CHKSUM
We assume that LIC_FILES_CHKSUM is a file: URI but don't actually verify this, which can lead to problems if you have a URI that resolves to a path of / as Bitbake will then dutifully checksum / recursively. [ YOCTO #12883 ] (From OE-Core rev: e2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8) (From OE-Core rev: a5db618986746bf9082c4b3cbdac4e523328432e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 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] == '/':