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-06-29 19:34:43 +0100 |
commit | 81c1327c33e4e9cfcb0f264c19f71e9144c852d6 (patch) | |
tree | baf5a726ae7842077e6288fe32ea03a99a3676f0 | |
parent | 14bcfa16e33c09ce9898bd58872e4fdf56ed8325 (diff) | |
download | openembedded-core-81c1327c33e4e9cfcb0f264c19f71e9144c852d6.tar.gz openembedded-core-81c1327c33e4e9cfcb0f264c19f71e9144c852d6.tar.bz2 openembedded-core-81c1327c33e4e9cfcb0f264c19f71e9144c852d6.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]
(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>
Signed-off-by: Armin Kuster <akuster@mvista.com>
-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 |