diff --git a/locales/app.yml b/locales/app.yml index 0863b332..e86ae2cd 100644 --- a/locales/app.yml +++ b/locales/app.yml @@ -1288,3 +1288,11 @@ _version: 2 zh_CN: "jetbrains-toolbox-updater 在更新过程中遇到意外错误" zh_TW: "jetbrains-toolbox-updater 在更新過程中遇到意外錯誤:" de: "jetbrains-toolbox-updater ist auf einen unerwarteten Fehler während der Aktualisierung gestoßen:" +"": + en: "" + lt: "" + es: "" + fr: "" + zh_CN: "<省略了 `deb-get clean` 的输出>" + zh_TW: "<省略了 `deb-get clean` 的輸出>" + de: "" diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index de7da6c2..61d16514 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -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!("")); + debug!("`deb-get clean` output: {output:?}"); } Ok(())