[Buildroot] [git commit branch/2018.08.x] support/download/dl-wrapper: fix urlencode option never being sent to backend

Peter Korsgaard peter at korsgaard.com
Sun Dec 16 19:45:54 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=c4dcb53bafc326fb6bf9c4ed83d478516e303e0b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.08.x

Since commit 38de434123 ("download: fix file:// BR2_PRIMARY_SITE
(download cache)"), the urlencode option is no longer passed to the
download backend, because we use ${backend} instead of

We must get the urlencode information from backend_urlencode.

Signed-off-by: Damien Thébault <damien.thebault at vitec.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
[Thomas: rework commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

(cherry picked from commit bb7c13273fbe2da0969e14ddfd61a46b78d79db2)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 support/download/dl-wrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
index 490335c859..f8040b6649 100755
--- a/support/download/dl-wrapper
+++ b/support/download/dl-wrapper
@@ -96,7 +96,7 @@ main() {
-        urlencode=${backend#*|}
+        urlencode=${backend_urlencode#*|}
         # urlencode must be "urlencode"
         [ "${urlencode}" != "urlencode" ] && urlencode=""

More information about the buildroot mailing list