<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 25, 2015 at 11:32 AM, Juro Bystricky <span dir="ltr"><<a href="mailto:juro.bystricky@intel.com" target="_blank">juro.bystricky@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1gi" class="a3s" style="overflow:hidden">Some URLs contain semi-colons. For example, some GIT repositories<br>
support downloading snapshots using URL such as:<br>
<br>
"<a href="http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47" rel="noreferrer" target="_blank">http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47</a>"<br>
<br>
Currently there is no way to construct SRC_URI with such URLs.<br>
<span class="il">Bitbake</span> uses semi-colons in SRC_URI as delimiters for various parameters.<br>
<br>
This patch allows using of semi-colons in URLs: ';;' (double semi-colon)<br>
in SRC_URI is processed as a single semi-colon that is a part of a URL name.<br>
For example, the above URL would become:<br>
<br>
SRC_URI = "<a href="http://abc123.com/git/?p=gcc/gcc.git;;a=snapshot;;h=a5dd47" rel="noreferrer" target="_blank">http://abc123.com/git/?p=gcc/gcc.git;;a=snapshot;;h=a5dd47</a>"<br>
<br>
Note that it is not possible to determine the name of the downloaded file<br>
from URL alone. The onus to specify the proper name is on the user,<br>
via the parameter 'downloadfilename':<br>
<br>
SRC_URI = "<a href="http://abc123.com/git/?p=gcc/gcc.git;;a=snapshot;;h=a5dd47;downloadfilename=myfile.tar.gz" rel="noreferrer" target="_blank">http://abc123.com/git/?p=gcc/gcc.git;;a=snapshot;;h=a5dd47;downloadfilename=myfile.tar.gz</a>"<br>
<br>
Signed-off-by: Juro Bystricky <<a href="mailto:juro.bystricky@intel.com">juro.bystricky@intel.com</a>></div></blockquote></div><br>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.<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>