diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2019-04-07 18:30:18 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-05-16 22:17:23 +0530 |
commit | 389b6275d61640cb5825de4d4e4dc7e7b7b68612 (patch) | |
tree | 139122dc184d38b4a3ab577413f402ab2f4d6aa7 | |
parent | 8c468fbcc9f0b4a1ef668f62f38bd2ad7c4c7cbb (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.py | 2 |
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: |