From 2cb2ee6676e24aff8ae18008b113be3219f44a85 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 27 Mar 2024 22:57:02 +0200 Subject: [PATCH] Updated for gpg verify --- slpkg/sbos/slackbuild.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index cd665ec1..9ab03e5e 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -47,6 +47,7 @@ class Slackbuilds(Configs): self.install_order: list = [] self.dependencies: list = [] self.skipped_packages: list = [] + self.asc_files: list = [] self.slackware_command: str = self.installpkg self.progress_message: str = f'{self.cyan}Installing{self.endc}' @@ -121,7 +122,6 @@ class Slackbuilds(Configs): self.view.question() def prepare_slackbuilds_for_build(self) -> None: - asc_files: list = [] if self.install_order: print(f'\rPrepare sources for downloading... ', end='') for sbo in self.install_order: @@ -145,13 +145,11 @@ 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') - asc_files.append(asc_file) + self.asc_files.append(asc_file) self.sources[sbo] = (sources, Path(self.build_path, sbo)) print(f'{self.bgreen}{self.ascii.done}{self.endc}') - if self.gpg_verification and self.repository == self.repos.sbo_repo_name: - self.gpg.verify(asc_files) def download_the_sources(self) -> None: if self.sources: @@ -180,6 +178,9 @@ class Slackbuilds(Configs): if self.slpkg_log_file.is_file(): self.slpkg_log_file.unlink() + if self.gpg_verification and self.repository == self.repos.sbo_repo_name: + self.gpg.verify(self.asc_files) + if self.install_order: print(f'Started the processing of ({self.cyan}{len(self.install_order)}{self.endc}) packages:\n')