]> git.ipfire.org Git - pakfire.git/commitdiff
cli: pakfire: Enable progressbar
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Oct 2023 11:54:16 +0000 (11:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Oct 2023 11:54:16 +0000 (11:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/pakfire.c

index 1cdf9dc0dd6f7db1fc728e70be7e7c35a5052a08..438711a0676b49e5d59e98d45a94faf2fec981df 100644 (file)
@@ -31,6 +31,7 @@
 #include "lib/command.h"
 #include "lib/info.h"
 #include "lib/install.h"
+#include "lib/progressbar.h"
 #include "lib/provides.h"
 #include "lib/remove.h"
 #include "lib/repolist.h"
@@ -210,6 +211,9 @@ static int configure_callbacks(const struct config* config, struct pakfire* pakf
        // Configure pick solution callback
        pakfire_set_pick_solution_callback(pakfire, cli_term_pick_solution, NULL);
 
+       // Configure setup progress callback
+       pakfire_set_setup_progress_callback(pakfire, cli_setup_progressbar, NULL);
+
        return 0;
 }