You might be better off using urllib.unquote() to handle this.

On Mon, Aug 2, 2010 at 12:16 PM, C Michael Sundius <[email protected]>wrote:

> This patch allows urls like this one:
>
> SRC_URI = "http://this-is-a-dumb-url/file%20name.tar.gz";
>
> To work.
> --------------------------
> diff --git a/lib/bb/fetch/wget.py b/lib/bb/fetch/wget.py
> index dcc58c7..c948d5e 100644
> --- a/lib/bb/fetch/wget.py
> +++ b/lib/bb/fetch/wget.py
> @@ -45,7 +45,8 @@ class Wget(Fetch):
>
>          url = encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}])
>          ud.basename = os.path.basename(ud.path)
> -        ud.localfile = data.expand(os.path.basename(url), d)
> +        thebasename = ud.basename.replace('%20',' ')
> +        ud.localfile = data.expand(os.path.basename(thebasename), d)
>
>          return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)
>
>
> _______________________________________________
> Bitbake-dev mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/bitbake-dev
>
>


-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to