Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
goto ERROR;
}
+ // Initialize keystore
+ r = pakfire_keystore_init(p, &p->gpgctx);
+ if (r)
+ goto ERROR;
+
// Populate pool
r = pakfire_populate_pool(p);
if (r)
}
gpgme_ctx_t pakfire_get_gpgctx(struct pakfire* pakfire) {
- // Create a new context if not done, yet
- if (!pakfire->gpgctx) {
- int r = pakfire_keystore_init(pakfire, &pakfire->gpgctx);
- if (r) {
- ERROR(pakfire, "Could not initialize keystore: %m\n");
- return NULL;
- }
- }
-
return pakfire->gpgctx;
}