Skip to content

Commit dc50ff0

Browse files
committed
updata: fix fetching max version in remove-update
- 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]>
1 parent d5eb9db commit dc50ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/updater/updog/src/bin/updata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl RemoveUpdateArgs {
121121
if let Some(current) = manifest.updates.first() {
122122
info!(
123123
"Update {}-{}-{} removed. Current maximum version: {}",
124-
self.arch, self.variant, self.image_version, current.version
124+
self.arch, self.variant, self.image_version, current.max_version
125125
);
126126
} else {
127127
info!(

0 commit comments

Comments
 (0)