]> git.ipfire.org Git - pakfire.git/commitdiff
cli: Don't use logging functions when setting up Pakfire fails
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:46:35 +0000 (15:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:46:35 +0000 (15:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/pakfire.c

index 402c207a708a9daed1a13a59b43a0076ecf1aa22..d8b4a68e5849e4053cdd14e321e903805be4d746 100644 (file)
@@ -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;
        }