From: Aníbal Limón Date: Wed, 11 May 2016 16:41:55 +0000 (-0500) Subject: classes/base: get_lic_checksum_file_list imporve validaton of url's X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~25813 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c28251d3d187b60ceb534055dbd8b4fffd06429;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index a7ca3a6676b..c3c2669939c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -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