If anyone else has problems with Pius crapping out with an error about
needing entropy, the attached patch fixes it.

--- ./pius	2014-08-20 11:43:16.000000000 +0100
+++ ./pius	2014-08-20 11:34:22.479939099 +0100
@@ -202,6 +202,7 @@
   GPG_GOOD_PASS = '[GNUPG:] GOOD_PASSPHRASE'
   GPG_SIG_BEG = '[GNUPG:] BEGIN_SIGNING'
   GPG_SIG_CREATED = '[GNUPG:] SIG_CREATED'
+  GPG_NEED_ENTROPY = '[GNUPG:] PROGRESS need_entropy'
 
   def __init__(self, signer, mode, keyring, gpg_path, tmpdir, outdir,
                encrypt_outfiles, mail, verbose, mail_text,
@@ -558,6 +559,9 @@
         # we get a ENC_INV.
         debug('Got GPG_KEY_EXP')
         continue
+      elif (uids_signer.GPG_NEED_ENTROPY in line):
+        debug('Got GPG_NEED_ENTROPY')
+        continue
       else:
         raise EncryptionUnknownError, line
 
@@ -948,6 +952,9 @@
             uids_signer.GPG_SIG_CREATED in line):
         debug('Got skippable stuff')
         continue
+      elif uids_signer.GPG_NEED_ENTROPY in line:
+        debug('Got GPG_NEED_ENTROPY')
+        continue
       else:
         raise EncryptionUnknownError, line
 



-- 
Brandon Invergo
http://brandon.invergo.net

Attachment: pgp1sKLpaFSu_.pgp
Description: PGP signature

Reply via email to