Skip to content

Commit

Permalink
api: extended: Select target with all apps when running an apps sync
Browse files Browse the repository at this point in the history
Previous code was using the current target object, which is based on the
current running system, and may not contain all available apps.
This could lead to an issue where the apps sync update fails later on in
the online case, since equality between the latest available and
selected target is checked, and all apps must be included.

Signed-off-by: Andre Detsch <[email protected]>
  • Loading branch information
detsch committed Oct 14, 2024
1 parent 95f76a9 commit 6cfe943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aklite_client_ext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ GetTargetToInstallResult AkliteClientExt::GetTargetToInstall(const CheckInResult
auto apps_to_update = client_->appsToUpdate(Target::fromTufTarget(current));
if (force_apps_sync || !apps_to_update.empty()) {
// Force installation of apps
res.selected_target = current;
res.selected_target = checkin_res.SelectTarget(current.Version());
LOG_INFO
<< "The specified Target is already installed, enforcing installation to make sure it's synced and running:"
<< res.selected_target.Name();
Expand Down

0 comments on commit 6cfe943

Please sign in to comment.