Add --secret-keyring to argument list in GPG._make_args().

feature/documentation-builds-html
Isis Lovecruft 2013-04-15 00:52:10 +00:00
parent 88a187bb06
commit 41219d209c
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 4 additions and 3 deletions

View File

@ -307,9 +307,10 @@ class GPG(object):
cmd = [self.gpgbinary, '--status-fd 2 --no-tty']
if self.gpghome:
cmd.append('--homedir "%s"' % self.gpghome)
if self.keyring:
cmd.append('--no-default-keyring --keyring %s --secret-keyring %s'
% (self.pubring, self.secring))
if self.pubring:
cmd.append('--no-default-keyring --keyring %s' % self.pubring)
if self.secring:
cmd.append('--secret-keyring %s' % self.secring)
if passphrase:
cmd.append('--batch --passphrase-fd 0')
if self.use_agent: