From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B261A1382B5 for ; Wed, 15 Jun 2016 08:04:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22721E0999; Wed, 15 Jun 2016 08:04:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06F22E0996 for ; Wed, 15 Jun 2016 08:04:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2564F3406AD for ; Wed, 15 Jun 2016 08:04:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF24B2417 for ; Wed, 15 Jun 2016 08:04:21 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1465977502.5fd4217cded80abf580361e5d232b99f0fcb0902.heroxbd@gentoo> Subject: [gentoo-commits] repo/proj/prefix:rap0 commit in: scripts/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/bootstrap-prefix.sh X-VCS-Directories: scripts/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 5fd4217cded80abf580361e5d232b99f0fcb0902 X-VCS-Branch: rap0 Date: Wed, 15 Jun 2016 08:04:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a800b9d7-7e70-4132-8c2e-d19675f97b20 X-Archives-Hash: 0ff46b282d8e472153da453e9f88140b Message-ID: <20160615080421.lnbZ0CXGc4IIDZ8sq1UqMCHS4KivzqLWPzfjF9dZslk@z> commit: 5fd4217cded80abf580361e5d232b99f0fcb0902 Author: Benda Xu gentoo org> AuthorDate: Mon Jun 13 14:15:04 2016 +0000 Commit: Benda XU gentoo org> CommitDate: Wed Jun 15 07:58:22 2016 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=5fd4217c bootstrap-prefix.sh: move up curl add -f option to test against download failures. scripts/bootstrap-prefix.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 9cda6b8..3c57b92 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -42,13 +42,13 @@ efetch() { # curl, FreeBSD's fetch and ftp. if [[ x$(type -t wget) == "xfile" ]] ; then FETCH_COMMAND="wget" - elif [[ x$(type -t ftp) == "xfile" ]] ; then - FETCH_COMMAND="ftp" elif [[ x$(type -t curl) == "xfile" ]] ; then einfo "WARNING: curl doesn't fail when downloading fails, please check its output carefully!" - FETCH_COMMAND="curl -L -O" + FETCH_COMMAND="curl -f -L -O" elif [[ x$(type -t fetch) == "xfile" ]] ; then FETCH_COMMAND="fetch" + elif [[ x$(type -t ftp) == "xfile" ]] ; then + FETCH_COMMAND="ftp" else eerror "no suitable download manager found (need wget, curl, fetch or ftp)" eerror "could not download ${1##*/}"