summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2019-04-07 18:30:18 +0200
committerNirbheek Chauhan <nirbheek@centricular.com>2019-05-16 22:17:23 +0530
commit389b6275d61640cb5825de4d4e4dc7e7b7b68612 (patch)
tree139122dc184d38b4a3ab577413f402ab2f4d6aa7
parent8c468fbcc9f0b4a1ef668f62f38bd2ad7c4c7cbb (diff)
Fix failures handling when downloading files with cURL
Make cURL fail when the download failed, so that instead of storing the error reply by the server in the destination, an exception is Raised to fallback to the mirrors
-rw-r--r--cerbero/utils/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py
index 59972c45..2751b7bc 100644
--- a/cerbero/utils/shell.py
+++ b/cerbero/utils/shell.py
@@ -312,7 +312,7 @@ def download_curl(url, destination=None, recursive=False, check_cert=True, overw
if recursive:
raise FatalError(_("cURL doesn't support recursive downloads"))
- cmd = "curl -L "
+ cmd = "curl -L --fail "
if not check_cert:
cmd += " -k "
if destination is not None: