Fixed for reinstall and ponce

This commit is contained in:
Dimitris Zlatanidis 2023-03-01 20:36:15 +02:00
parent 34e7f2c749
commit ef543c6446

View file

@ -54,7 +54,7 @@ class Slackbuilds(Configs):
self.endc: str = self.color['endc']
self.byellow: str = f'{self.bold}{self.yellow}'
self.bred: str = f'{self.bold}{self.red}'
self.flag_reinstall: list = ['-R', '--reinstall']
self.flag_reinstall: list = ['-r', '--reinstall']
self.flag_skip_installed: list = ['-k', '--skip-installed']
self.flag_resolve_off: list = ['-o', '--resolve-off']
self.flag_jobs: list = ['-j', '--jobs']
@ -144,7 +144,7 @@ class Slackbuilds(Configs):
sbo_url: str = f'{self.sbo_repo_url}/{location}/{file}'
ponce_url: str = f'{self.ponce_url}/{location}/{sbo}'
if self.ponce_repo and self.ponce_url:
if self.ponce_repo:
path = Path(self.build_path, sbo)
lftp = Downloader(path, ponce_url, self.flags)
lftp.download()