diff options
author | Alexis Christoforides <alexis@thenull.net> | 2018-02-23 02:27:38 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-02-23 19:32:21 +0300 |
commit | 1908d43ec630544189bd11630a59ec4ef571db28 (patch) | |
tree | 693a86ef7d29290050a9069136c800b080fffba9 | |
parent | 368ce3e8f4e86676e2af2ad33c7d0f0c9a1796f4 (diff) |
Detect HTTP errors when using curl2017-12
(cherry picked from commit 463bf5f401e9db5f210a55b1a2533824002e8c4b)
-rw-r--r-- | bockbuild/package.py | 2 |
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 |