ソースを参照

support/download/dl-wrapper: fix urlencode option never being sent to backend

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>

(cherry picked from commit bb7c13273fbe2da0969e14ddfd61a46b78d79db2)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Damien Thébault 5 年 前
コミット
c4dcb53baf
1 ファイル変更1 行追加1 行削除
  1. 1 1
      support/download/dl-wrapper

+ 1 - 1
support/download/dl-wrapper

@@ -96,7 +96,7 @@ main() {
         esac
         uri=${uri#*+}
 
-        urlencode=${backend#*|}
+        urlencode=${backend_urlencode#*|}
         # urlencode must be "urlencode"
         [ "${urlencode}" != "urlencode" ] && urlencode=""