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_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)?;