[oe-commits] [openembedded-core] 23/31: classes/base: get_lic_checksum_file_list imporve validaton of url's

git at git.openembedded.org git at git.openembedded.org
Mon May 16 22:25:20 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 95293a7b38cf850dc52b3f3d97aa4bda99601b24
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Wed May 11 11:41:55 2016 -0500

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/base.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index a7ca3a6..c3c2669 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list