support/download/dl-wrapper: fix urlencode option never being sent to backend
Since commit38de434123
("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> (cherry picked from commitbb7c13273f
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
1ce11955b8
commit
8e38dbeab1
@ -93,7 +93,7 @@ main() {
|
||||
esac
|
||||
uri=${uri#*+}
|
||||
|
||||
urlencode=${backend#*|}
|
||||
urlencode=${backend_urlencode#*|}
|
||||
# urlencode must be "urlencode"
|
||||
[ "${urlencode}" != "urlencode" ] && urlencode=""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user