mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 05:24:16 +02:00
[arch] fix -> AUR: importing PGP keys
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
from typing import Optional
|
||||
|
||||
from bauh.commons.system import SystemProcess, new_subprocess
|
||||
|
||||
|
||||
def receive_key(key: str) -> SystemProcess:
|
||||
return SystemProcess(new_subprocess(['gpg', '--recv-key', key]), check_error_output=False)
|
||||
def receive_key(key: str, server: Optional[str] = None) -> SystemProcess:
|
||||
cmd = ['gpg']
|
||||
|
||||
if server:
|
||||
cmd.extend(['--keyserver', server])
|
||||
|
||||
cmd.extend(['--recv-key', key])
|
||||
|
||||
return SystemProcess(new_subprocess(cmd), check_error_output=False)
|
||||
|
||||
Reference in New Issue
Block a user