fix: fix mist (#464)
This commit is contained in:
@@ -457,6 +457,7 @@ fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
})
|
})
|
||||||
.unwrap_or_else(|| PathBuf::from("apt-get"));
|
.unwrap_or_else(|| PathBuf::from("apt-get"));
|
||||||
|
|
||||||
|
let is_mist = apt.ends_with("mist");
|
||||||
let is_nala = apt.ends_with("nala");
|
let is_nala = apt.ends_with("nala");
|
||||||
if !is_nala {
|
if !is_nala {
|
||||||
ctx.run_type()
|
ctx.run_type()
|
||||||
@@ -468,7 +469,7 @@ fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
|
|
||||||
let mut command = ctx.run_type().execute(sudo);
|
let mut command = ctx.run_type().execute(sudo);
|
||||||
command.arg(&apt);
|
command.arg(&apt);
|
||||||
if is_nala {
|
if is_nala || is_mist {
|
||||||
command.arg("upgrade");
|
command.arg("upgrade");
|
||||||
} else {
|
} else {
|
||||||
command.arg("dist-upgrade");
|
command.arg("dist-upgrade");
|
||||||
|
|||||||
Reference in New Issue
Block a user