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-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=81c1327c33e4e9cfcb0f264c19f71e9144c852d6;p=openembedded-core.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] (From OE-Core rev: 6c28251d3d187b60ceb534055dbd8b4fffd06429) Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index a7ca3a6676..c3c2669939 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