add config (WIP)

This commit is contained in:
steven-omaha
2023-01-14 17:08:59 +01:00
parent 13e34983b9
commit 4b13a86a6d
2 changed files with 37 additions and 2 deletions
+10 -1
View File
@@ -60,7 +60,16 @@ impl Pacdef {
fn get_missing_packages(&self) -> ToDoPerBackend {
let mut to_install = ToDoPerBackend::new();
for mut backend in Backends::iter() {
for backend in Backends::iter() {
let mut backend = if backend.get_section() == "pacman" {
Box::new(crate::backend::Pacman {
binary: self.config.aur_helper.clone(),
packages: HashSet::new(),
})
} else {
backend
};
backend.load(&self.groups);
match backend.get_missing_packages_sorted() {