From 3a4797a103429a1d12c9e7d6a484e37270edace6 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 13 Mar 2023 20:22:05 +0200 Subject: [PATCH] Removed if statement --- slpkg/slackbuild.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index d0425a9e..3a9175cc 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -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)