Updated for gpg verify

This commit is contained in:
Dimitris Zlatanidis 2024-03-27 22:57:02 +02:00
parent 336fec808d
commit 2cb2ee6676

View file

@ -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')