From b8cba304154ccd6483590258a5cbb6c3cb019830 Mon Sep 17 00:00:00 2001 From: Andre Detsch Date: Wed, 28 Aug 2024 16:08:28 -0300 Subject: [PATCH] cli: Use appropriate reason when initiating update in pullAndInstall This affects aklite CLI pull, install, and update commands. Signed-off-by: Andre Detsch --- src/cli/cli.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli.cc b/src/cli/cli.cc index fd7988bc..c8ceed94 100644 --- a/src/cli/cli.cc +++ b/src/cli/cli.cc @@ -300,7 +300,7 @@ static StatusCode pullAndInstall(AkliteClientExt &client, int version, const std LOG_WARNING << "Downgrading from " << current.Version() << " to " << gti_res.selected_target.Version() << "..."; } - auto pi_res = client.PullAndInstall(gti_res.selected_target, "", "", install_mode, local_update_source, + auto pi_res = client.PullAndInstall(gti_res.selected_target, gti_res.reason, "", install_mode, local_update_source, pull_mode == PullMode::All, do_install); return res2StatusCode(i2s, pi_res.status); }