fix: debian backend
Actually tested this time.
This commit is contained in:
@@ -27,14 +27,14 @@ impl Backend for Debian {
|
|||||||
switches_info: &["show"],
|
switches_info: &["show"],
|
||||||
switches_install: &["install"],
|
switches_install: &["install"],
|
||||||
switches_noconfirm: &["--yes"],
|
switches_noconfirm: &["--yes"],
|
||||||
switches_remove: &["remove"],
|
switches_remove: &["remove", "--auto-remove"],
|
||||||
switches_make_dependency: Some(&[]),
|
switches_make_dependency: Some(&[]),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_all_installed_packages(&self) -> Result<Packages> {
|
fn get_all_installed_packages(&self) -> Result<Packages> {
|
||||||
let mut cmd = Command::new("apt");
|
let mut cmd = Command::new("dpkg-query");
|
||||||
cmd.args(&["list", "--installed"]);
|
cmd.args(&["--showformat=${Package}\n", "--show"]);
|
||||||
|
|
||||||
let output = String::from_utf8(cmd.output()?.stdout)?;
|
let output = String::from_utf8(cmd.output()?.stdout)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user