buildroot/support
Robert Beckett a5ba72946e dl-wrapper: Fix support for URIs containing '+'
'+' is a valid character in a url. The current dl-wrapper gets the
URI scheme by dropping everything after the last '+' character, with
the intension of finding 'git' from e.g. 'git+https://uri'.

If a uri has a '+' anywhere in it, it ends up using too much of the
string as a scheme, and fails to match the handler properly.

An example of where this form of URI is used is when using deploy tokens
in gitlab. It uses a form like https://<username>:<password>@gitlab.com/<group>/<repo.git>
where username for deploy token is of the form 'gitlab+deploy-token-<number>'.

Use the %% operator to search backwards until the last '+' character when
dropping the rest of the string as we know that the first '+'
in the string should be the scheme.

Signed-off-by: Robert Beckett <bbeckett@netvu.org.uk>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-06-04 21:59:55 +02:00
..
config-fragments support/config-fragments/autobuild: update ARC pre-built toolchain 2018-04-22 12:28:41 +02:00
dependencies support/dependencies: check that PATH does not contain CWD 2018-05-09 23:26:18 +02:00
docker support/docker: run apt-get update and apt-get install in two RUNs 2018-06-03 20:31:20 +02:00
download dl-wrapper: Fix support for URIs containing '+' 2018-06-04 21:59:55 +02:00
gnuconfig support/gnuconfig: bump version to 2016-05-15 2016-06-05 22:26:57 +02:00
kconfig support/kconfig: Add missing target to README.buildroot 2018-05-13 22:09:01 +02:00
legal-info legal-info: add hash for our own license file 2017-07-05 16:31:40 +02:00
libtool support/libtool: add patch for newer versions 2014-12-21 13:21:56 +01:00
misc Update for 2018.05 2018-06-01 22:22:57 +02:00
scripts support/scripts/pkg-stats: use parenthesis for print 2018-05-19 13:48:21 +02:00
testing support/testing: set $USER in rust tests 2018-04-29 09:57:32 +02:00