Change format of messages in Builder::fmt

This commit is contained in:
Jakub Beránek 2025-08-12 10:42:14 +02:00
parent fbfcfa6bce
commit df2da84a61
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -1130,11 +1130,12 @@ impl Build {
let action = action.into().description();
let msg = |fmt| format!("{action} stage{actual_stage} {what}{fmt}");
let msg = if let Some(target) = target.into() {
let build_stage = host_and_stage.stage;
let host = host_and_stage.host;
if host == target {
msg(format_args!(" ({target})"))
msg(format_args!(" (stage{build_stage} -> stage{actual_stage}, {target})"))
} else {
msg(format_args!(" ({host} -> {target})"))
msg(format_args!(" (stage{build_stage}:{host} -> stage{actual_stage}:{target})"))
}
} else {
msg(format_args!(""))