kiddin9 3 年之前
父節點
當前提交
380dbb4075
共有 2 個文件被更改,包括 11 次插入13 次删除
  1. 0 13
      devices/common/patches/download.patch
  2. 11 0
      devices/common/patches/download.patch.b

+ 0 - 13
devices/common/patches/download.patch

@@ -1,13 +0,0 @@
---- a/scripts/download.pl
-+++ b/scripts/download.pl
-@@ -80,8 +80,8 @@ ($)
- 	}
- 
- 	return $have_curl
--		? (qw(curl -f --connect-timeout 20 --retry 5 --location --insecure), shellwords($ENV{CURL_OPTIONS} || ''), $url)
--		: (qw(wget --tries=5 --timeout=20 --no-check-certificate --output-document=-), shellwords($ENV{WGET_OPTIONS} || ''), $url)
-+		? (qw(curl -f --connect-timeout 5 -m 30 --retry 3 --location --insecure), shellwords($ENV{CURL_OPTIONS} || ''), $url)
-+		: (qw(wget --tries=3 --timeout=20 --no-check-certificate --output-document=-), shellwords($ENV{WGET_OPTIONS} || ''), $url)
- 	;
- }
- 

+ 11 - 0
devices/common/patches/download.patch.b

@@ -0,0 +1,11 @@
+--- a/scripts/download.pl
++++ b/scripts/download.pl
+@@ -82,11 +82,11 @@ ($)
+ 	}
+ 
+ 	return $have_curl
+-		? (qw(curl -f --connect-timeout 20 --retry 5 --location),
++		? (qw(curl -f --connect-timeout 5 --retry 3 -m 30 --location),
+ 			$check_certificate ? () : '--insecure',
+ 			shellwords($ENV{CURL_OPTIONS} || ''),
+ 			$url)