mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Removed if statement
This commit is contained in:
parent
8ce3fb5fd9
commit
3a4797a103
1 changed files with 3 additions and 4 deletions
|
@ -158,10 +158,9 @@ class Slackbuilds(Configs):
|
||||||
path_ponce_repo_package = Path(self.ponce_repo_path, location, sbo)
|
path_ponce_repo_package = Path(self.ponce_repo_path, location, sbo)
|
||||||
path_build_package = Path(self.build_path, 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}')
|
||||||
shutil.copytree(path_ponce_repo_package, f'{self.build_path}{sbo}')
|
slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
|
||||||
slackbuild = Path(path_build_package, f'{sbo}.SlackBuild')
|
os.chmod(slackbuild, 0o775)
|
||||||
os.chmod(slackbuild, 0o775)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.utils.remove_file_if_exists(self.build_path, file)
|
self.utils.remove_file_if_exists(self.build_path, file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue