Fixed for none repo packages

This commit is contained in:
Dimitris Zlatanidis 2023-03-07 18:03:11 +02:00
parent df87c04ac5
commit f47a17f276

View file

@ -147,10 +147,12 @@ class Slackbuilds(Configs):
path_ponce_repo_package = Path(self.ponce_repo_path, location, sbo)
path_build_package = Path(self.build_path, sbo)
shutil.copytree(path_ponce_repo_package, f'{self.build_path}{sbo}')
slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
os.chmod(slackbuild, 0o775)
if path_ponce_repo_package.is_dir():
shutil.copytree(path_ponce_repo_package, f'{self.build_path}{sbo}')
slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
os.chmod(slackbuild, 0o775)
else:
raise SystemExit(f"Error: path {path_ponce_repo_package} does not exist.")
else:
sbo_url: str = f'{self.sbo_repo_url}{location}/{file}'
down_sbo = Downloader(self.tmp_slpkg, sbo_url, self.flags)