diff options
author | Alexis Christoforides <alexis@thenull.net> | 2018-02-23 02:27:38 +0300 |
---|---|---|
committer | Alexis Christoforides <alexis@thenull.net> | 2018-02-23 02:27:38 +0300 |
commit | 463bf5f401e9db5f210a55b1a2533824002e8c4b (patch) | |
tree | b37c271251931bad232a282ea6d82896cd003b05 /bockbuild | |
parent | 96c3664e274e745f4239e142428e3b536a292eec (diff) |
Detect HTTP errors when using curl
Diffstat (limited to 'bockbuild')
-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 |