[Pgp-tools-commit] r670 - trunk/keyart

Guilhem Moulin guilhem-guest at moszumanska.debian.org
Wed Jun 18 22:08:39 UTC 2014


Author: guilhem-guest
Date: 2014-06-18 22:08:38 +0000 (Wed, 18 Jun 2014)
New Revision: 670

Modified:
   trunk/keyart/keyart
Log:
keyart: Allow -f to be repeated, as said in the manpage.

Modified: trunk/keyart/keyart
===================================================================
--- trunk/keyart/keyart	2014-06-18 22:06:02 UTC (rev 669)
+++ trunk/keyart/keyart	2014-06-18 22:08:38 UTC (rev 670)
@@ -244,13 +244,11 @@
 
     cmd = [gpg_bin, '--with-colons', '--fingerprint']
     if ARGS.fingerprint:
-        size = None
-        algo = None
-        fpr = ARGS.fingerprint[0]
-        if len(fpr) % 8 != 0:
-            print "Hex string must be a multiple of 8 bytes."
-            sys.exit(2)
-        print draw_art(size, algo, fpr)
+        for fpr in ARGS.fingerprint:
+            if len(fpr) % 8 != 0:
+                print "Hex string must be a multiple of 8 bytes."
+                sys.exit(2)
+            print draw_art(None, None, fpr)
 
     if ARGS.keyring:
         cmd.append('--no-default-keyring')




More information about the Pgp-tools-commit mailing list