From: Marcus Brinkmann Date: Thu, 10 Jan 2008 04:54:16 +0000 (+0000) Subject: 2008-01-10 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~91 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bde9d73fccb544b255dfdf101408c9b1f7ee6ae;p=gpgme.git 2008-01-10 Marcus Brinkmann * gpg/t-gpgconf.c (main): Allow for dirmngr not to be available. --- diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index d63ca03..89b40b4 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,5 +1,7 @@ 2008-01-10 Marcus Brinkmann + * gpg/t-gpgconf.c (main): Allow for dirmngr not to be available. + * gpg/Makefile.am (./gpg-agent.conf): Correct pinentry path. * gpg/pinentry: New file. diff --git a/trunk/tests/gpg/t-gpgconf.c b/trunk/tests/gpg/t-gpgconf.c index a619a46..8d9fb20 100644 --- a/trunk/tests/gpg/t-gpgconf.c +++ b/trunk/tests/gpg/t-gpgconf.c @@ -292,15 +292,23 @@ main (int argc, char **argv) comp = conf; while (comp && strcmp (comp->name, "dirmngr")) comp = comp->next; - opt = comp->options; - while (opt && strcmp (opt->name, "verbose")) - opt = opt->next; - - err = gpgme_conf_opt_change (opt, 0, arg); - fail_if_err (err); - err = gpgme_op_conf_save (ctx, comp); - fail_if_err (err); + if (comp) + { + opt = comp->options; + while (opt && strcmp (opt->name, "verbose")) + opt = opt->next; + + /* Allow for the verbose option not to be there. */ + if (opt) + { + err = gpgme_conf_opt_change (opt, 0, arg); + fail_if_err (err); + + err = gpgme_op_conf_save (ctx, comp); + fail_if_err (err); + } + } } #endif