diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-05-11 11:41:55 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-17 14:42:17 +0100 |
commit | 6c28251d3d187b60ceb534055dbd8b4fffd06429 (patch) | |
tree | 4df3701470db0072de7b6e7ef9b8c91021420a91 /meta/classes | |
parent | 1b5b831d1bbb92760ce01b38347cf0bcaa1bb59f (diff) | |
download | openembedded-core-6c28251d3d187b60ceb534055dbd8b4fffd06429.tar.gz openembedded-core-6c28251d3d187b60ceb534055dbd8b4fffd06429.tar.bz2 openembedded-core-6c28251d3d187b60ceb534055dbd8b4fffd06429.zip |
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 <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
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 |