diff --git a/configs/slpkg.toml b/configs/slpkg.toml index b280b7a9..27112ab1 100644 --- a/configs/slpkg.toml +++ b/configs/slpkg.toml @@ -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. diff --git a/slpkg/downloader.py b/slpkg/downloader.py index 20be7ac6..463f5295 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -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':