From 9fb3b810f7e7cfb7f9f3099c72fd2afe679af12b Mon Sep 17 00:00:00 2001 From: Mike Sul Date: Wed, 10 Jul 2024 11:51:53 +0200 Subject: [PATCH] cli: Adjust client to the CLI API changes Signed-off-by: Mike Sul --- src/cli.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli.cpp b/src/cli.cpp index 44118e7..2688e3a 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -8,6 +8,7 @@ #include #include "aktualizr-lite/api.h" +#include "aktualizr-lite/aklite_client_ext.h" #include "aktualizr-lite/cli/cli.h" #include "cli.h" @@ -112,7 +113,7 @@ static void print_status(aklite::cli::StatusCode ret) { std::cout << std::endl; } -static std::unique_ptr init_client(bool online_mode) { +static std::unique_ptr init_client(bool online_mode) { boost::log::core::get()->set_filter(boost::log::trivial::severity >= boost::log::trivial::info); std::vector cfg_dirs; @@ -132,7 +133,7 @@ static std::unique_ptr init_client(bool online_mode) { } try { - return std::make_unique(cfg_dirs, false, false); + return std::make_unique(cfg_dirs, false, false); } catch (const std::exception& exc) { LOG_ERROR << "Failed to initialize the client: " << exc.what(); return nullptr;