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
committerAlexis Christoforides <alexis@thenull.net>2018-02-23 02:27:38 +0300
commit463bf5f401e9db5f210a55b1a2533824002e8c4b (patch)
treeb37c271251931bad232a282ea6d82896cd003b05
parent96c3664e274e745f4239e142428e3b536a292eec (diff)
Detect HTTP errors when using curl
-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