Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2018-02-23 02:27:38 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-02-23 19:32:21 +0300
commit1908d43ec630544189bd11630a59ec4ef571db28 (patch)
tree693a86ef7d29290050a9069136c800b080fffba9
parent368ce3e8f4e86676e2af2ad33c7d0f0c9a1796f4 (diff)
Detect HTTP errors when using curl2017-12
(cherry picked from commit 463bf5f401e9db5f210a55b1a2533824002e8c4b)
-rw-r--r--bockbuild/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bockbuild/package.py b/bockbuild/package.py
index 263e001..84a66b1 100644
--- a/bockbuild/package.py
+++ b/bockbuild/package.py
@@ -286,7 +286,7 @@ class Package:
curl_bin = which('curl')
if not curl_bin:
error('curl not found in PATH')
- run (curl_bin,['-L','-o', cache_dest, archive], None)
+ run (curl_bin,['--location','--fail','--output', cache_dest, archive], None)
def update_cache():
pass