X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=add.c;h=10627f281105d8bb3369aaf5c122b7d37e2086c0;hb=3dcacadf03a7cf272f1618b981b08121504e131a;hp=189444e294fb2d83af8869b3c943504c30fba810;hpb=ad30ce51bf609c35cd99a9ca46dd859b17d8164a;p=onak.git diff --git a/add.c b/add.c index 189444e..10627f2 100644 --- a/add.c +++ b/add.c @@ -23,7 +23,6 @@ #include "merge.h" #include "onak-conf.h" #include "parsekey.h" -#include "sendsync.h" int main(int argc, char *argv[]) { @@ -78,14 +77,15 @@ int main(int argc, char *argv[]) logthing(LOGTHING_INFO, "%d keys cleaned.", count); - count = update_keys(&keys); + count = update_keys(&keys, true); logthing(LOGTHING_NOTICE, "Got %d new keys.", count); + if (keys != NULL) { - sendkeysync(keys); free_publickey(keys); keys = NULL; } + cleanupdb(); } else { puts("No OpenPGP packets found in input.");