[bitbake-devel] [PATCH] wget.py: support for semi-colons in URL

Christopher Larson clarson at kergoth.com
Sat Jul 25 19:14:58 UTC 2015


On Sat, Jul 25, 2015 at 11:32 AM, Juro Bystricky <juro.bystricky at intel.com>
wrote:

> Some URLs contain semi-colons. For example, some GIT repositories
> support downloading snapshots using URL such as:
>
> "http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
>
> Currently there is no way to construct SRC_URI with such URLs.
> Bitbake uses semi-colons in SRC_URI as delimiters for various parameters.
>
> This patch allows using of semi-colons in URLs: ';;' (double semi-colon)
> in SRC_URI is processed  as a single semi-colon that is a part of a URL
> name.
> For example, the above URL would become:
>
> SRC_URI = "http://abc123.com/git/?p=gcc/gcc.git;;a=snapshot;;h=a5dd47"
>
> Note that it is not possible to determine the name of the downloaded file
> from URL alone. The onus to specify the proper name is on the user,
> via the parameter 'downloadfilename':
>
> SRC_URI = "
> http://abc123.com/git/?p=gcc/gcc.git;;a=snapshot;;h=a5dd47;downloadfilename=myfile.tar.gz
> "
>
> Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
>

In my opinion, if we’re going to support this, we should really support it
in a generic way, in urldecode/urlencode & the URL class, and if needed
leverage that in wget.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20150725/2f72b070/attachment-0002.html>


More information about the bitbake-devel mailing list