fix: debian backend

Actually tested this time.
This commit is contained in:
steven-omaha
2026-05-02 15:55:44 +02:00
parent 73ca20f124
commit ad01427a22
+3 -3
View File
@@ -27,14 +27,14 @@ impl Backend for Debian {
switches_info: &["show"],
switches_install: &["install"],
switches_noconfirm: &["--yes"],
switches_remove: &["remove"],
switches_remove: &["remove", "--auto-remove"],
switches_make_dependency: Some(&[]),
}
}
fn get_all_installed_packages(&self) -> Result<Packages> {
let mut cmd = Command::new("apt");
cmd.args(&["list", "--installed"]);
let mut cmd = Command::new("dpkg-query");
cmd.args(&["--showformat=${Package}\n", "--show"]);
let output = String::from_utf8(cmd.output()?.stdout)?;