fixed detached signature verification
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 22 Jul 2015 19:42:03 +0000 (15:42 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:28:39 +0000 (13:28 -0500)
the indentation was wrong.

edward

diff --git a/edward b/edward
index aaa52e2f34ac8fb89303441eefea69c6cd0df4ce..28f3aebfca406cdd4d5924cfc3c0e1c152453ea0 100755 (executable)
--- a/edward
+++ b/edward
@@ -293,12 +293,13 @@ def gpg_on_payloads (eddy_obj, gpgme_ctx, prev_parts=[]):
         elif piece.piece_type == "detachedsig":
             for prev in prev_parts:
                 payload_bytes = prev.payload_bytes
-            sig_fps = verify_detached_signature(piece.string, payload_bytes, gpgme_ctx)
+                sig_fps = verify_detached_signature(piece.string, payload_bytes, gpgme_ctx)
 
-            if sig_fps != []:
-                piece.gpg_data = GPGData()
-                piece.gpg_data.sigs = sig_fps
-                piece.gpg_data.plainobj = prev
+                if sig_fps != []:
+                    piece.gpg_data = GPGData()
+                    piece.gpg_data.sigs = sig_fps
+                    piece.gpg_data.plainobj = prev
+                    break
         else:
             pass