Updated for wget2

This commit is contained in:
Dimitris Zlatanidis 2023-04-06 13:53:57 +03:00
parent 9aa662f6af
commit 0fa1b38345
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@
REMOVEPKG = "removepkg"
# You can choose a downloader among wget, curl and lftp.
# Default is wget. [wget/curl/lftp]
# Default is wget. [wget/wget2/curl/lftp]
DOWNLOADER = "wget"
# Wget downloader options.
# -c, --continue: resume getting a partially-downloaded file.

View file

@ -43,7 +43,7 @@ class Downloader(Configs):
command: str = ''
filename: str = url.split('/')[-1]
if self.downloader == 'wget':
if self.downloader in ['wget', 'wget2']:
command: str = f'{self.downloader} {self.wget_options} --directory-prefix={self.path} "{url}"'
elif self.downloader == 'curl':