return 0;
}
+static int cli_confirm(struct pakfire_ctx* ctx, struct pakfire* pakfire,
+ void* data, const char* message, const char* question) {
+ // Just print the message
+ if (message)
+ printf("%s\n", message);
+
+ return 0;
+}
+
int main(int argc, char* argv[]) {
struct pakfire_ctx* ctx = NULL;
int r;
if (r)
goto ERROR;
+ // Setup confirm callback
+ pakfire_ctx_set_confirm_callback(ctx, cli_confirm, NULL);
+
// Setup progress callback
pakfire_ctx_set_progress_callback(ctx, cli_setup_progressbar, NULL);