Omit deb-get clean output (#1119)

This commit is contained in:
Gideon
2025-04-13 10:36:22 +02:00
committed by GitHub
parent 397a537eef
commit 801dddacd4
2 changed files with 13 additions and 1 deletions

View File

@@ -587,7 +587,11 @@ pub fn run_deb_get(ctx: &ExecutionContext) -> Result<()> {
ctx.run_type().execute(&deb_get).arg("upgrade").status_checked()?;
if ctx.config().cleanup() {
ctx.run_type().execute(&deb_get).arg("clean").status_checked()?;
let output = ctx.run_type().execute(&deb_get).arg("clean").output_checked()?;
// Swallow the output, as it's very noisy and not useful.
// The output is automatically printed as part of `output_checked` when an error occurs.
println!("{}", t!("<output from `deb-get clean` omitted>"));
debug!("`deb-get clean` output: {output:?}");
}
Ok(())