From: Michael Tremer Date: Fri, 30 Apr 2021 08:27:39 +0000 (+0000) Subject: request: Log what we are solving X-Git-Tag: 0.9.28~1285^2~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=963bea2346b4516cb9d029d1e1e25fb52ea74e83;p=pakfire.git request: Log what we are solving Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/request.c b/src/libpakfire/request.c index 0f3f1bb77..e78a912a1 100644 --- a/src/libpakfire/request.c +++ b/src/libpakfire/request.c @@ -145,6 +145,8 @@ static int init_solver(struct pakfire_request* request, int flags) { } static int solve(struct pakfire_request* request, Queue* queue) { + Pool* pool = pakfire_get_solv_pool(request->pakfire); + /* Remove any previous transactions */ if (request->transaction) { transaction_free(request->transaction); @@ -153,6 +155,13 @@ static int solve(struct pakfire_request* request, Queue* queue) { pakfire_pool_apply_changes(request->pakfire); +#if ENABLE_DEBUG + const char* selection = pool_selection2str(pool, queue, 0); + if (selection) { + DEBUG(request->pakfire, "Solving: %s\n", selection); + } +#endif + // Save time when we starting solving clock_t solving_start = clock();