Skip to content

Commit

Permalink
Print previous version too when updating
Browse files Browse the repository at this point in the history
This was easy.

Closes: #445
  • Loading branch information
cgwalters committed May 5, 2023
1 parent dee940f commit d266829
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bootupd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub(crate) fn client_run_update(c: &mut ipc::ClientToDaemonConnection) -> Result
continue;
}
ComponentUpdateResult::Updated {
previous: _,
previous,
interrupted,
new,
} => {
Expand All @@ -348,7 +348,9 @@ pub(crate) fn client_run_update(c: &mut ipc::ClientToDaemonConnection) -> Result
i.version,
);
}
println!("Updated {}: {}", name, new.version);
println!("Updated {}", name);
println!(" Previous: {}", previous.version);
println!(" Current: {}", new.version);
}
}
updated = true;
Expand Down

0 comments on commit d266829

Please sign in to comment.