mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
classes/base: get_lic_checksum_file_list imporve validaton of url's
When specify an URL different that supported file:// the function returns an empty path causing an exception without notice the user that the URL is Malformed. [YOCTO #9211] (From OE-Core rev: 6c28251d3d187b60ceb534055dbd8b4fffd06429) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4725d9021d
commit
d28ab58485
@@ -105,6 +105,9 @@ def get_lic_checksum_file_list(d):
|
||||
# any others should be covered by SRC_URI.
|
||||
try:
|
||||
path = bb.fetch.decodeurl(url)[2]
|
||||
if not path:
|
||||
raise bb.fetch.MalformedUrl(url)
|
||||
|
||||
if path[0] == '/':
|
||||
if path.startswith(tmpdir):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user