Skip to content

Commit

Permalink
updata: fix fetching max version in remove-update
Browse files Browse the repository at this point in the history
- When running the remove-update command it would report the max version
available in the manifest. But it is checking the wrong order so that
the latest version is not correctly reported. This is a simple fix for
that. Instead of reading the version, we read the max_version field
so that the max version is correctly captured.

Signed-off-by: Yutong Sun <[email protected]>
  • Loading branch information
ytsssun committed Feb 4, 2025
1 parent d5eb9db commit dc50ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/updater/updog/src/bin/updata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl RemoveUpdateArgs {
if let Some(current) = manifest.updates.first() {
info!(
"Update {}-{}-{} removed. Current maximum version: {}",
self.arch, self.variant, self.image_version, current.version
self.arch, self.variant, self.image_version, current.max_version
);
} else {
info!(
Expand Down

0 comments on commit dc50ff0

Please sign in to comment.