Removed if statement

This commit is contained in:
Dimitris Zlatanidis 2023-03-13 20:22:05 +02:00
parent 8ce3fb5fd9
commit 3a4797a103

View file

@ -158,10 +158,9 @@ class Slackbuilds(Configs):
path_ponce_repo_package = Path(self.ponce_repo_path, location, sbo)
path_build_package = Path(self.build_path, sbo)
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)
shutil.copytree(path_ponce_repo_package, f'{self.build_path}{sbo}')
slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
os.chmod(slackbuild, 0o775)
else:
self.utils.remove_file_if_exists(self.build_path, file)