After implementing Brent's suggestion to have pgpExec catch both stderr and stdin, extracting a valid key works. However, the old code relied on the 'catch' to report an error. As a result, we no longer get into the 'Key Extract Failed!' part of the code. Best fix is probably to inspect the captured output with a regexp looking
for 'No new keys found'.
Log in to post a comment.