Updated for tar suffix

This commit is contained in:
Dimitris Zlatanidis 2024-03-28 10:18:10 +02:00
parent 2cb2ee6676
commit 998bc52d4a
3 changed files with 7 additions and 4 deletions

View file

@ -94,7 +94,7 @@ class DownloadOnly(Configs):
if self.gpg_verification and self.repository == self.repos.sbo_repo_name:
location: str = self.data[name]['location']
asc_file: Path = Path(self.repos.repositories_path, self.repos.sbo_repo_name,
location, f'{name}.tar.gz.asc')
location, f'{name}{self.repos.sbo_repo_tar_suffix}.asc')
self.asc_files.append(asc_file)
def copy_slackbuild_scripts(self, name: str) -> None:

View file

@ -562,7 +562,8 @@ class Repositories:
'mirror': sbo_repo_mirror,
'slackbuilds_txt': sbo_repo_slackbuilds,
'changelog_txt': sbo_repo_changelog,
'repo_tag': sbo_repo_tag},
'repo_tag': sbo_repo_tag,
'tar_suffix': sbo_repo_tar_suffix},
ponce_repo_name: {
'enable': ponce_repo,
@ -570,7 +571,8 @@ class Repositories:
'mirror': ponce_repo_mirror,
'slackbuilds_txt': ponce_repo_slackbuilds,
'changelog_txt': ponce_repo_changelog,
'repo_tag': ponce_repo_tag},
'repo_tag': ponce_repo_tag,
'tar_suffix': ponce_repo_tar_suffix},
slack_repo_name: {
'enable': slack_repo,

View file

@ -60,6 +60,7 @@ class Slackbuilds(Configs):
self.slackbuilds: list = self.utils.apply_package_pattern(data, slackbuilds)
self.repo_tag: str = self.repos.repositories[repository]['repo_tag']
self.tar_suffix: str = self.repos.repositories[repository]['tar_suffix']
def execute(self) -> None:
self.creating_dependencies_list()
@ -144,7 +145,7 @@ class Slackbuilds(Configs):
if self.gpg_verification and self.repository == self.repos.sbo_repo_name:
asc_file: Path = Path(self.repos.repositories_path, self.repos.sbo_repo_name,
location, f'{sbo}.tar.gz.asc')
location, f'{sbo}{self.tar_suffix}.asc')
self.asc_files.append(asc_file)
self.sources[sbo] = (sources, Path(self.build_path, sbo))