monkeysign hangs when using --local
With the latest git HEAD (commit: 633e3c7a), using the --local option make monkeysign hangs indefinitely.
With verbose mode activated, after the second question (Really sign key? [y/N]), the PGP key block output is printed then this:
[...]
-----END PGP PUBLIC KEY BLOCK-----
stderr:
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--armor', '--status-fd', '2', '--export-options', 'export-minimal', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--import']
ret: 0 stdout: stderr: [GNUPG:] IMPORT_OK 0 <KEYID-REMOVED-FOR-BUG-REPORT>
[GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0
FOUND: [GNUPG:] IMPORT_OK 0 <KEYID-REMOVED-FOR-BUG-REPORT>
FOUND: [GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--armor', '--status-fd', '2', '--export-options', 'export-minimal', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--lsign-key', '<KEYID-REMOVED-FOR-BUG-REPORT>']
SKIPPED: [GNUPG:] GET_BOOL sign_uid.dupe_okay
FOUND: [GNUPG:] GOT_IT
skipped: [GNUPG:] GET_BOOL sign_uid.okay
[hangs...]
Stopping the process at this point, here is the python stack trace:
^CTraceback (most recent call last):
File "/usr/local/bin/monkeysign", line 41, in <module>
u.main()
File "/usr/local/lib/python2.7/dist-packages/monkeysign/cli.py", line 64, in main
self.sign_key()
File "/usr/local/lib/python2.7/dist-packages/monkeysign/ui.py", line 305, in sign_key
if not self.keyring.sign_key(pattern, alluids, True):
File "/usr/local/lib/python2.7/dist-packages/monkeysign/gpg.py", line 512, in sign_key
self.context.seek(proc.stderr, 'GOOD_PASSPHRASE')
File "/usr/local/lib/python2.7/dist-packages/monkeysign/gpg.py", line 216, in seek
return self.seek_pattern(fd, '^\[GNUPG:\] ' + pattern)
File "/usr/local/lib/python2.7/dist-packages/monkeysign/gpg.py", line 203, in seek_pattern
line = fd.readline()
KeyboardInterrupt
There is no CPU used nor nothing... The process seems well blocked.
(from redmine: created on 2013-08-20)