diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /taskcluster/scripts/misc/fetch-content | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/scripts/misc/fetch-content')
-rwxr-xr-x | taskcluster/scripts/misc/fetch-content | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/taskcluster/scripts/misc/fetch-content b/taskcluster/scripts/misc/fetch-content index 6e7b625dce..8dcf0960cc 100755 --- a/taskcluster/scripts/misc/fetch-content +++ b/taskcluster/scripts/misc/fetch-content @@ -263,8 +263,6 @@ def download_to_path(url, path, sha256=None, size=None): fh.write(chunk) return - except IntegrityError: - raise except Exception as e: log("Download failed: {}".format(e)) continue @@ -275,17 +273,15 @@ def download_to_path(url, path, sha256=None, size=None): def download_to_memory(url, sha256=None, size=None): """Download a URL to memory, possibly with verification.""" - data = b"" for _ in retrier(attempts=5, sleeptime=60): - try: - log("Downloading %s" % (url)) + data = b"" + log("Downloading %s" % (url)) + try: for chunk in stream_download(url, sha256=sha256, size=size): data += chunk return data - except IntegrityError: - raise except Exception as e: log("Download failed: {}".format(e)) continue |