changelog: report through the log instead of printing to stdout

generate_entry's status messages become log lines, and the unmet
build-dependency diagnostics travel inside the UnmetBuildDependencies
error (its Display carries the full report) instead of being printed
to stderr by the library: the caller renders both like any other
outcome.
This commit is contained in:
2026-09-18 20:44:05 +02:00
parent 54cb04ba27
commit 0421a91e01
3 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -389,7 +389,9 @@ pub fn run_source_build(
};
let report = crate::debian::deps::check_build_depends(&ctrl, &check_opts)?;
if !report.is_ok() {
eprintln!("{}", report.message());
// The diagnostics travel inside the error (its Display carries
// report.message()); main renders it and maps the type to exit
// status 3, like dpkg-buildpackage.
return Err(Box::new(crate::debian::deps::UnmetBuildDependencies(
report,
)));