return 77 when gpg isn't available rather than 127

also fixed to import the keys from the correct location

svn path=/trunk/; revision=22287
This commit is contained in:
Jeffrey Stedfast
2003-08-19 15:44:33 +00:00
parent ea129e916b
commit ae90832e1a

View File

@ -144,10 +144,10 @@ int main (int argc, char **argv)
if ((ret = system ("gpg > /dev/null 2>&1")) == -1)
return 77;
else if (WEXITSTATUS (ret) == 127)
return 127;
return 77;
system ("gpg --import camel-test.gpg.pub > /dev/null 2>&1");
system ("gpg --import camel-test.gpg.sec > /dev/null 2>&1");
system ("gpg --import ../data/camel-test.gpg.pub > /dev/null 2>&1");
system ("gpg --import ../data/camel-test.gpg.sec > /dev/null 2>&1");
session = camel_pgp_session_new ("/tmp/camel-test");