mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for wget2
This commit is contained in:
parent
9aa662f6af
commit
0fa1b38345
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Add table
Reference in a new issue