summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/fetch-content
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /taskcluster/scripts/misc/fetch-content
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.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-xtaskcluster/scripts/misc/fetch-content10
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