Revert "fix: fix mist" (#465)

Revert "fix: fix mist (#464)"

This reverts commit 282e336ac4.
This commit is contained in:
Thomas Schönauer
2023-06-03 21:22:23 +00:00
committed by GitHub
parent 282e336ac4
commit 470231c9d1

View File

@@ -457,7 +457,6 @@ fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
})
.unwrap_or_else(|| PathBuf::from("apt-get"));
let is_mist = apt.ends_with("mist");
let is_nala = apt.ends_with("nala");
if !is_nala {
ctx.run_type()
@@ -469,7 +468,7 @@ fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
let mut command = ctx.run_type().execute(sudo);
command.arg(&apt);
if is_nala || is_mist {
if is_nala {
command.arg("upgrade");
} else {
command.arg("dist-upgrade");