mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Fixed for repo path
This commit is contained in:
parent
b23f7606ab
commit
82784ce92b
1 changed files with 3 additions and 6 deletions
|
@ -32,6 +32,7 @@ class Slackbuilds(Configs):
|
||||||
|
|
||||||
def __init__(self, repository: str, data: dict, slackbuilds: list, flags: list, mode: str):
|
def __init__(self, repository: str, data: dict, slackbuilds: list, flags: list, mode: str):
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
|
self.repository: str = repository
|
||||||
self.data = data
|
self.data = data
|
||||||
self.slackbuilds: list = slackbuilds
|
self.slackbuilds: list = slackbuilds
|
||||||
self.flags: list = flags
|
self.flags: list = flags
|
||||||
|
@ -175,12 +176,8 @@ class Slackbuilds(Configs):
|
||||||
slackbuild = Path(self.build_path, sbo, f'{sbo}.SlackBuild')
|
slackbuild = Path(self.build_path, sbo, f'{sbo}.SlackBuild')
|
||||||
|
|
||||||
# Copy slackbuilds to the build folder.
|
# Copy slackbuilds to the build folder.
|
||||||
if self.repos.ponce_repo:
|
path_repo_package = Path(self.repos.repositories[self.repository][1], location, sbo)
|
||||||
path_ponce_repo_package = Path(self.repos.ponce_repo_path, location, sbo)
|
shutil.copytree(path_repo_package, build_path)
|
||||||
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)
|
|
||||||
|
|
||||||
os.chmod(slackbuild, 0o775)
|
os.chmod(slackbuild, 0o775)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue