diff --git a/slpkg/downloader.py b/slpkg/downloader.py index 3481622d..0daf5c31 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -54,21 +54,6 @@ class Downloader(Configs, Utilities): self.output = subprocess.call(f'{self.downloader} {self.curl_options} "{self.url}" --output ' f'{self.path}/{self.filename}', shell=True, stderr=self.stderr, stdout=self.stdout) - # elif self.downloader == 'lftp': - # - # if self.ponce_repo and 'ponce' in self.url: - # # Download files from a directory. - # self.output = subprocess.call(f'lftp {self.lftp_mirror_options} {self.url} {self.path}', - # shell=True, stderr=self.stderr, stdout=self.stdout) - # # Create /path/name.Slackbuild - # slackbuild = Path(self.path, f'{str(self.path).split("/")[-1]}.SlackBuild') - # - # if slackbuild.is_file(): - # os.chmod(slackbuild, 0o775) - # else: - # # Download binaries files and the sources. - # self.output = subprocess.call(f'lftp {self.lftp_get_options} {self.url} -o {self.path}', - # shell=True, stderr=self.stderr, stdout=self.stdout) else: raise SystemExit(f"{self.red}Error:{self.endc} Downloader '{self.downloader}' not supported.\n")