]> git.sthu.org Git - pgp-tools.git/commitdiff
Exit if we didn't find anything
authorweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Tue, 16 Aug 2005 15:23:52 +0000 (15:23 +0000)
committerweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Tue, 16 Aug 2005 15:23:52 +0000 (15:23 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@194 b513b33f-fedd-0310-b452-c3deb5f4c849

keylookup/keylookup

index 115578015469f31b7219fa000d7724cd05fdb2d5..44fae86d1999b5a60f1f71e47e336975d2bf062e 100755 (executable)
@@ -349,6 +349,10 @@ sub version {
        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;