Use apt-get in Debian (fix #601)
This commit is contained in:
@@ -350,7 +350,7 @@ fn upgrade_gentoo(ctx: &ExecutionContext) -> Result<()> {
|
||||
|
||||
fn upgrade_debian(sudo: &Option<PathBuf>, cleanup: bool, run_type: RunType, yes: bool) -> Result<()> {
|
||||
if let Some(sudo) = &sudo {
|
||||
let apt = which("apt-fast").unwrap_or_else(|| PathBuf::from("/usr/bin/apt"));
|
||||
let apt = which("apt-fast").unwrap_or_else(|| PathBuf::from("/usr/bin/apt-get"));
|
||||
run_type.execute(&sudo).arg(&apt).arg("update").check_run()?;
|
||||
|
||||
let mut command = run_type.execute(&sudo);
|
||||
|
||||
Reference in New Issue
Block a user