[OE-core] [PATCH] classes/base: get_lic_checksum_file_list imporve validaton of url's
Burton, Ross
ross.burton at intel.com
Tue May 17 15:17:33 UTC 2016
This is in master-next now, thanks Anibal!
Ross
On 16 May 2016 at 18:24, Aníbal Limón <anibal.limon at linux.intel.com> wrote:
> ping
>
> On 05/11/2016 11:41 AM, Aníbal Limón wrote:
> > 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>
> > ---
> > 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
> >
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160517/3581450a/attachment-0002.html>
More information about the Openembedded-core
mailing list