mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Removed old
This commit is contained in:
parent
20691bf0a0
commit
1f06ddecd6
1 changed files with 0 additions and 15 deletions
|
@ -54,21 +54,6 @@ class Downloader(Configs, Utilities):
|
||||||
self.output = subprocess.call(f'{self.downloader} {self.curl_options} "{self.url}" --output '
|
self.output = subprocess.call(f'{self.downloader} {self.curl_options} "{self.url}" --output '
|
||||||
f'{self.path}/{self.filename}', shell=True, stderr=self.stderr,
|
f'{self.path}/{self.filename}', shell=True, stderr=self.stderr,
|
||||||
stdout=self.stdout)
|
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:
|
else:
|
||||||
raise SystemExit(f"{self.red}Error:{self.endc} Downloader '{self.downloader}' not supported.\n")
|
raise SystemExit(f"{self.red}Error:{self.endc} Downloader '{self.downloader}' not supported.\n")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue