Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
PAKFIRE_EXPORT int pakfire_transaction_run(struct pakfire_transaction* transaction) {
+ PakfireRepo repo = NULL;
struct pakfire_db* db;
int r;
DEBUG(transaction->pakfire, "The transaction has finished successfully\n");
+ // Reload database for next transaction
+
+ repo = pakfire_get_installed_repo(transaction->pakfire);
+ if (!repo)
+ goto ERROR;
+
+ // Reload the database
+ r = pakfire_db_load(db, repo);
+
ERROR:
- // Free the database
+ if (repo)
+ pakfire_repo_unref(repo);
pakfire_db_unref(db);
return r;