Correctly encode 'keyhome' into a gpg command.
This commit is contained in:
parent
c04db9c35f
commit
ffaee4c577
|
@ -2,8 +2,8 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
def public_keys( keyhome ):
|
def public_keys( keyhome ):
|
||||||
cmd = '/usr/bin/gpg --homedir %s --list-keys --with-colons' % keyhome
|
cmd = ['/usr/bin/gpg', '--homedir', keyhome, '--list-keys', '--with-colons']
|
||||||
p = subprocess.Popen( cmd.split(' '), stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE )
|
p = subprocess.Popen( cmd, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE )
|
||||||
p.wait()
|
p.wait()
|
||||||
keys = list()
|
keys = list()
|
||||||
for line in p.stdout.readlines():
|
for line in p.stdout.readlines():
|
||||||
|
|
Loading…
Reference in New Issue