Removed old

This commit is contained in:
Dimitris Zlatanidis 2023-03-05 09:33:20 +02:00
parent 20691bf0a0
commit 1f06ddecd6

View file

@ -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")