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:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user