apt: Recognise mist (#351)
This commit is contained in:
@@ -361,6 +361,13 @@ fn upgrade_gentoo(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
|
fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> {
|
||||||
if let Some(sudo) = &ctx.sudo() {
|
if let Some(sudo) = &ctx.sudo() {
|
||||||
let apt = which("apt-fast")
|
let apt = which("apt-fast")
|
||||||
|
.or_else(|| {
|
||||||
|
if which("mist").is_some() {
|
||||||
|
Some(PathBuf::from("mist"))
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
})
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
if Path::new("/usr/bin/nala").exists() {
|
if Path::new("/usr/bin/nala").exists() {
|
||||||
Some(Path::new("/usr/bin/nala").to_path_buf())
|
Some(Path::new("/usr/bin/nala").to_path_buf())
|
||||||
|
|||||||
Reference in New Issue
Block a user