From 2209b6d5e70622c94c87462cf00be215d5129967 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 18 Oct 2024 15:46:35 +0000 Subject: [PATCH] cli: Don't use logging functions when setting up Pakfire fails Signed-off-by: Michael Tremer --- src/cli/lib/pakfire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/lib/pakfire.c b/src/cli/lib/pakfire.c index 402c207a7..d8b4a68e5 100644 --- a/src/cli/lib/pakfire.c +++ b/src/cli/lib/pakfire.c @@ -95,7 +95,7 @@ int cli_setup_pakfire(struct pakfire** pakfire, struct cli_config* config) { // Initialize Pakfire r = pakfire_create(&p, config->ctx, config->root, config->arch, f, config->flags); if (r < 0) { - CTX_ERROR(config->ctx, "Could not initialize Pakfire: %s\n", strerror(-r)); + fprintf(stderr, "Could not initialize Pakfire: %s\n", strerror(-r)); goto ERROR; } -- 2.39.5