1 |
commit: 0cd156717887780716319f191f44a64681c325d8 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 28 02:18:59 2017 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 09:45:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=0cd15671 |
7 |
|
8 |
bootstrap-prefix.sh: wget no-check-certificate before stage1 portage |
9 |
|
10 |
The host certificates could be outdated and does not contain Let's |
11 |
encrypt used by gentoo. |
12 |
|
13 |
scripts/bootstrap-prefix.sh | 1 + |
14 |
1 file changed, 1 insertion(+) |
15 |
|
16 |
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
17 |
index 510b23f924..bf35b32b81 100755 |
18 |
--- a/scripts/bootstrap-prefix.sh |
19 |
+++ b/scripts/bootstrap-prefix.sh |
20 |
@@ -45,6 +45,7 @@ efetch() { |
21 |
# curl, FreeBSD's fetch and ftp. |
22 |
if [[ x$(type -t wget) == "xfile" ]] ; then |
23 |
FETCH_COMMAND="wget" |
24 |
+ [[ $(wget -h) == *"--no-check-certificate"* ]] && FETCH_COMMAND+=" --no-check-certificate" |
25 |
elif [[ x$(type -t curl) == "xfile" ]] ; then |
26 |
einfo "WARNING: curl doesn't fail when downloading fails, please check its output carefully!" |
27 |
FETCH_COMMAND="curl -f -L -O" |