]> git.ipfire.org Git - pakfire.git/commitdiff
cli: client: Always load client.conf
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 10:36:41 +0000 (10:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 10:36:41 +0000 (10:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/pakfire.c

index 15db3c1d4091fe44741af6cc17f5460ce30c109f..74f67c61b8c7c146b13bfb7e066d379293df82ab 100644 (file)
@@ -169,6 +169,11 @@ int cli_setup_client(struct pakfire_client** client, struct cli_global_args* arg
        if (r < 0)
                goto ERROR;
 
+       // Read the client configuration
+       r = pakfire_config_read_path(config, PAKFIRE_CONFIG_DIR "/client.conf");
+       if (r < 0)
+               goto ERROR;
+
        // Fetch the URL
        url = pakfire_config_get(config, "client", "url", "https://pakfire.ipfire.org/");