Updated for sbo

This commit is contained in:
Dimitris Zlatanidis 2023-03-17 11:53:38 +02:00
parent d30cfe42c1
commit 83b333d205

View file

@ -38,14 +38,14 @@ class Download(Configs, Utilities):
start: float = time.time()
for sbo in slackbuilds:
file: str = f'{sbo}{self.sbo_tar_suffix}'
location: str = SBoQueries(sbo).location()
url: list = [f'{self.sbo_repo_url}{location}/{file}']
if self.ponce_repo:
ponce_repo_path_package = Path(self.ponce_repo_path, location, sbo)
shutil.copytree(ponce_repo_path_package, f'{download_path}{sbo}')
else:
file: str = f'{sbo}{self.sbo_tar_suffix}'
url: list = [f'{self.sbo_repo_url}{location}/{file}']
down_sbo = Downloader(download_path, url, self.flags)
down_sbo.download()