rework section loading
This commit is contained in:
+8
-2
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user