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:43:29 +0100 |
commit | d28ab584850b715c4b223e5146ecee18d8ae3c97 (patch) | |
tree | 983edd1f1d1f982fea32e5fe51caa3364d86d0a2 | |
parent | 4725d9021d1c27046cba531c1c357cc875b0d5fa (diff) | |
download | poky-d28ab584850b715c4b223e5146ecee18d8ae3c97.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)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.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 |