GnuPG.add_key: Use build_command

This commit is contained in:
Piotr F. Mieszkowski 2022-01-25 20:32:17 +01:00
parent 03fc3d138e
commit 67a938c049
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def confirm_key( content, email ):
# adds a key and ensures it has the given email address
def add_key( keyhome, content ):
p = subprocess.Popen( ['/usr/bin/gpg', '--homedir', keyhome, '--import', '--batch'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE )
p = subprocess.Popen( build_command(keyhome, '--import', '--batch'), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE )
p.communicate(input=content)
p.wait()