support/download/dl-wrapper: fix urlencode option never being sent to backend
authorDamien Thébault <damien.thebault@vitec.com>
Fri, 7 Dec 2018 12:41:08 +0000 (12:41 +0000)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 9 Dec 2018 16:16:04 +0000 (17:16 +0100)
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
${backend_urlencode}.

We must get the urlencode information from backend_urlencode.

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

index bb70c98253b94c2a83ddc8064e2113cc64e16b29..3315bd410e4ae7343968b8e9326b3852bb6cc47f 100755 (executable)
@@ -93,7 +93,7 @@ main() {
         esac
         uri=${uri#*+}
 
-        urlencode=${backend#*|}
+        urlencode=${backend_urlencode#*|}
         # urlencode must be "urlencode"
         [ "${urlencode}" != "urlencode" ] && urlencode=""