diff options
author | Benda Xu <heroxbd@gentoo.org> | 2017-11-28 11:18:59 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2017-11-29 18:45:43 +0900 |
commit | 0cd156717887780716319f191f44a64681c325d8 (patch) | |
tree | 7c21115bdfbc03cb656af19400e21020e0c3123b | |
parent | sys-apps/coreutils: quote econf args, bug#639146 (diff) | |
download | prefix-0cd156717887780716319f191f44a64681c325d8.tar.gz prefix-0cd156717887780716319f191f44a64681c325d8.tar.bz2 prefix-0cd156717887780716319f191f44a64681c325d8.zip |
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.
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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" |