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