add config (WIP)

This commit is contained in:
timeshifter
2023-01-14 17:08:59 +01:00
parent 1a9226384a
commit a5419d02ec
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() {