diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2024-05-15 14:27:32 +0530 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2024-05-21 12:48:33 +0000 |
commit | 962a95eb506dabd83687bb3d18f30cc23311bd05 (patch) | |
tree | 6c46a834522285bb1f6a371cd442a1a67e5aa2e8 | |
parent | b12a0f83dc0f09dff74ecb788fa37119235d505e (diff) |
cerbero: Add Fedora 40 support
Fedora has moved to wget2 which doesn't support --progress=dot
https://github.com/rockdaboot/wget2/issues/317
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1473>
-rw-r--r-- | cerbero/utils/shell.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py index 2cbf109a..dc290d5f 100644 --- a/cerbero/utils/shell.py +++ b/cerbero/utils/shell.py @@ -427,6 +427,11 @@ async def download(url, dest, check_cert=True, overwrite=False, logfile=None, mi f'Invoke-WebRequest -UserAgent {user_agent} -OutFile {dest} ' '-Method Get -Uri %s', ] + elif shutil.which('wget2'): + cmd = ['wget2', '--user-agent', user_agent, '--tries=2', '--timeout=20', '-O', dest] + if not check_cert: + cmd += ['--no-check-certificate'] + cmd += ['%s'] elif shutil.which('wget'): cmd = ['wget', '--user-agent', user_agent, '--tries=2', '--timeout=20', '--progress=dot:giga', '-O', dest] if not check_cert: |