aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJakub Dębski <jdebski@enigma.com.pl>2018-04-17 12:00:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-14 12:00:43 +0100
commitd822ae24ef5485e550804cbd9130ebd73b2aa48e (patch)
tree3c535f24f2e3cc417f76ef6672e479573965d3ca /doc
parent61b0df5523afc8f805043f3adc9c106690e6f133 (diff)
downloadbitbake-d822ae24ef5485e550804cbd9130ebd73b2aa48e.tar.gz
fetch2/__init__.py: Fixed handling of uris with empty path
For mirrors or premirrors defined like: "http://.*/.* http://somewhere.org" fetching ends with errors because function fetch2/__init__.py:encodeurl() creates url like "http://somewhere.orgsomefile.tar.gz". It happens because function fetch2/__init__.py:decodeurl() for url "http://somewhere.org" returns ['http', 'somewhere.org', '', '', '', {}] and then in function fetch2/__init__.py:uri_replace() variable result_decode will be ['http', 'somewhere.org', 'somefile.tar.gz', '', '', {}] (because of line: result_decoded[loc] = os.path.join(result_decoded[loc], basename)) for which encodeurl returns "http://somewhere.orgsomefile.tar.gz". In addition for mirror "http://.*/.* http://somewhere.org/" everything works fine. Signed-off-by: Jakub Dębski <jdebski@enigma.com.pl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions