From 962a95eb506dabd83687bb3d18f30cc23311bd05 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 15 May 2024 14:27:32 +0530 Subject: 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: --- cerbero/utils/shell.py | 5 +++++ 1 file changed, 5 insertions(+) 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: -- cgit v1.2.3