]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: fix handling of URIs containing #
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 22 Sep 2015 16:21:29 +0000 (17:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Sep 2015 17:12:56 +0000 (18:12 +0100)
commit58dc726808817210764eab963a4d453dc4ff49aa
tree45844ed53eb2d2f580d5aae718b01c14e1d880ae
parentff14d9e5b935b99b2efde479515e54c02ba58f6e
recipetool: create: fix handling of URIs containing #

The # character in a URI denotes a fragment; we don't care about this
since it is never supposed to be sent to the server, so remove it from
the URI before actually trying to fetch it or use it in SRC_URI within
the recipe.

(This has come up because download links on pypi.python.org seem to have
a fragment containing the md5sum of the download; without stripping this
off the fetcher will choke on it.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py