[Pgp-tools-commit] r729 - trunk/gpg-key2latex

Guilhem Moulin guilhem-guest at moszumanska.debian.org
Mon Nov 10 17:41:30 UTC 2014


Author: guilhem-guest
Date: 2014-11-10 17:41:30 +0000 (Mon, 10 Nov 2014)
New Revision: 729

Modified:
   trunk/gpg-key2latex/gpg-key2latex
Log:
gpg-key2latex: croak when all keys are unusable.

Modified: trunk/gpg-key2latex/gpg-key2latex
===================================================================
--- trunk/gpg-key2latex/gpg-key2latex	2014-11-10 17:41:25 UTC (rev 728)
+++ trunk/gpg-key2latex/gpg-key2latex	2014-11-10 17:41:30 UTC (rev 729)
@@ -228,6 +228,8 @@
     push @KEYS, \%key if %key;
 }
 
+die "No usable key found.\n" unless @KEYS;
+
 print "\\documentclass[landscape,$options{'paper-size'}paper]{article}\n";
 print << 'EOF'
 \usepackage{fancyvrb}




More information about the Pgp-tools-commit mailing list