mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for gpg verify
This commit is contained in:
parent
336fec808d
commit
2cb2ee6676
1 changed files with 5 additions and 4 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue