rework section loading

This commit is contained in:
timeshifter
2023-01-09 19:06:51 +01:00
parent 45f8f9a5d5
commit 03cc060d0f
8 changed files with 32 additions and 14 deletions
+8 -2
View File
@@ -24,16 +24,22 @@ impl Pacdef {
pub(crate) fn install_packages(&self) {
let mut to_install = ToInstallPerBackend::new();
for b in Backends::iter() {
for mut b in Backends::iter() {
print!("{}: ", b.get_binary());
// dbg!(&self.groups);
b.load(&self.groups);
// dbg!(b.get_managed_packages());
let diff = b.get_missing_packages_sorted();
if diff.is_empty() {
println!("nothing to do");
continue;
}
println!(" Would install the following packages:");
println!("would install the following packages");
for p in &diff {
println!(" {p}");
}