[Pgp-tools-commit] r194 - trunk/keylookup
Peter Palfrader
weasel at costa.debian.org
Tue Aug 16 15:23:53 UTC 2005
Author: weasel
Date: 2005-08-16 15:23:52 +0000 (Tue, 16 Aug 2005)
New Revision: 194
Modified:
trunk/keylookup/keylookup
Log:
Exit if we didn't find anything
Modified: trunk/keylookup/keylookup
===================================================================
--- trunk/keylookup/keylookup 2005-08-16 15:22:01 UTC (rev 193)
+++ trunk/keylookup/keylookup 2005-08-16 15:23:52 UTC (rev 194)
@@ -349,6 +349,10 @@
my $keys = getHits( \%options );
my $keyids;
+ if (scalar keys %$keys == 0) {
+ print "GnuPG did not find any keys matching your search string.\n";
+ exit 0;
+ };
if ($options{'importall'}) {
my @allkeys = keys %$keys;
$keyids = \@allkeys;
More information about the Pgp-tools-commit
mailing list