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

Aaron Toponce atoponce-guest at moszumanska.debian.org
Wed Jun 18 23:52:16 UTC 2014


Author: atoponce-guest
Date: 2014-06-18 23:52:15 +0000 (Wed, 18 Jun 2014)
New Revision: 672

Modified:
   trunk/keyart/keyart
Log:
Remove footer badge if key_size is None

To prevent confusion with PGP key fingerprints, the footer badge is not printed
for arbitrary hexadecimal strings provided by '-f|--fingerprint'. This makes it
clear that the printed ASCII art is not related to a PGP key.


Modified: trunk/keyart/keyart
===================================================================
--- trunk/keyart/keyart	2014-06-18 22:37:53 UTC (rev 671)
+++ trunk/keyart/keyart	2014-06-18 23:52:15 UTC (rev 672)
@@ -186,7 +186,13 @@
         else:
             art = art.format(_get_coin(visit, ARGS.color))
 
-    art += '+{:-^19}+'.format("["+key_fpr[-8:]+"]")
+    if key_size:
+        footer = "["+key_fpr[-8:]+"]"
+    else:
+        footer = ''
+
+    art += '+{:-^19}+'.format(footer)
+
     return art
 
 def _get_coin(num_of_hits, ansi_art=False, coin=None):




More information about the Pgp-tools-commit mailing list