On (02/08/10 12:16), C Michael Sundius 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)

is space only special character that needs handing ?

> 
>          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

_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to