Browse Source

GnuPG.add_key: Use build_command

pull/58/head
Piotr F. Mieszkowski 7 months ago
parent
commit
67a938c049
  1. 2
      GnuPG/__init__.py

2
GnuPG/__init__.py

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

Loading…
Cancel
Save