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:36:00 +0100 |
commit | 4b57c55182c3b8cb6696d8596d819baf774d71a9 (patch) | |
tree | f420649c3277ec7db0459263b8720a25e25e39a9 | |
parent | 073c0ba55ee83a7a9c766df3ab37084dd1164a1e (diff) | |
download | poky-4b57c55182c3b8cb6696d8596d819baf774d71a9.tar.gz |
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)
(From OE-Core rev: 81c1327c33e4e9cfcb0f264c19f71e9144c852d6)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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): | |||
105 | # any others should be covered by SRC_URI. | 105 | # any others should be covered by SRC_URI. |
106 | try: | 106 | try: |
107 | path = bb.fetch.decodeurl(url)[2] | 107 | path = bb.fetch.decodeurl(url)[2] |
108 | if not path: | ||
109 | raise bb.fetch.MalformedUrl(url) | ||
110 | |||
108 | if path[0] == '/': | 111 | if path[0] == '/': |
109 | if path.startswith(tmpdir): | 112 | if path.startswith(tmpdir): |
110 | continue | 113 | continue |