From 82784ce92b40d0291311fd727c723b0fc59bfca2 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 7 May 2023 20:19:53 +0300 Subject: [PATCH] Fixed for repo path --- slpkg/sbos/slackbuild.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index 5755a26c..54870e52 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -32,6 +32,7 @@ class Slackbuilds(Configs): def __init__(self, repository: str, data: dict, slackbuilds: list, flags: list, mode: str): super(Configs, self).__init__() + self.repository: str = repository self.data = data self.slackbuilds: list = slackbuilds self.flags: list = flags @@ -175,12 +176,8 @@ class Slackbuilds(Configs): slackbuild = Path(self.build_path, sbo, f'{sbo}.SlackBuild') # Copy slackbuilds to the build folder. - if self.repos.ponce_repo: - path_ponce_repo_package = Path(self.repos.ponce_repo_path, location, sbo) - shutil.copytree(path_ponce_repo_package, build_path) - else: - path_sbo_repo_package = Path(self.repos.sbo_repo_path, location, sbo) - shutil.copytree(path_sbo_repo_package, build_path) + path_repo_package = Path(self.repos.repositories[self.repository][1], location, sbo) + shutil.copytree(path_repo_package, build_path) os.chmod(slackbuild, 0o775)