Allow apt-get update to continue to apt-get upgrade with error code 100 (#440)

Allow apt-get update to continue with error code 100
This commit is contained in:
Thomas Schönauer
2023-05-26 19:57:05 +00:00
committed by GitHub
parent 7db991db9d
commit 6263ab7e10

View File

@@ -431,7 +431,11 @@ fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
let is_nala = apt.ends_with("nala"); let is_nala = apt.ends_with("nala");
if !is_nala { if !is_nala {
ctx.run_type().execute(sudo).arg(&apt).arg("update").status_checked()?; ctx.run_type()
.execute(sudo)
.arg(&apt)
.arg("update")
.status_checked_with_codes(&[0, 100])?;
} }
let mut command = ctx.run_type().execute(sudo); let mut command = ctx.run_type().execute(sudo);