sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Ismael Luceno (e1621e117d4e8a4cda1bfc7b818504434cc1ec82)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Ismael Luceno (e1621e117d4e8a4cda1bfc7b818504434cc1ec82)
- Date: Mon, 22 Jul 2019 09:06:48 +0000
GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:
var/lib/sorcery/modules/dl_handlers/dl_curl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e1621e117d4e8a4cda1bfc7b818504434cc1ec82
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
dl_curl: Make curl fail more explicitly
In case of a non-successful request, curl normally returns the error
document.
Add --fail to let us handle the error and fallback to the next mirror.
[ismael AT sourcemage.org: Improved commit message]
diff --git a/var/lib/sorcery/modules/dl_handlers/dl_curl
b/var/lib/sorcery/modules/dl_handlers/dl_curl
index b6cd717..24c5eec 100755
--- a/var/lib/sorcery/modules/dl_handlers/dl_curl
+++ b/var/lib/sorcery/modules/dl_handlers/dl_curl
@@ -122,7 +122,7 @@ dl_curl_set_options() {
REDIRECT="--location"
- CURL_OPTIONS="$URL_HTTP_TIMEOUT $URL_HTTP_RETRIES $RATE $PASSIVE $CONTINUE
$REDIRECT $check_certificate"
+ CURL_OPTIONS="$URL_HTTP_TIMEOUT $URL_HTTP_RETRIES $RATE $PASSIVE $CONTINUE
$REDIRECT $check_certificate --fail"
debug 'dl_curl' "curl options: $CURL_OPTIONS"
}
#---------------------------------------------------------------------
- [SM-Commit] GIT changes to master sorcery by Ismael Luceno (e1621e117d4e8a4cda1bfc7b818504434cc1ec82), Ismael Luceno, 07/22/2019
Archive powered by MHonArc 2.6.24.