return 0;
}
+static void pool_log(Pool* pool, void* data, int type, const char* s) {
+ Pakfire pakfire = (Pakfire)data;
+
+ DEBUG(pakfire, "pool: %s", s);
+}
+
static int pakfire_populate_pool(Pakfire pakfire) {
struct pakfire_db* db;
PakfireRepo repo = NULL;
// Set path
pool_set_rootdir(pool, pakfire->path);
+ // Set debug callback
+ pool_setdebugcallback(pool, pool_log, pakfire);
+
// Open database in read-only mode and try to load all installed packages
r = pakfire_db_open(&db, pakfire, PAKFIRE_DB_READWRITE);
if (r)